Coder Social home page Coder Social logo

angularjs-google-places's People

Contributors

arunisrael avatar jmcclell avatar rpocklin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

angularjs-google-places's Issues

More than 10 promises will not resolve.

If you do something like:

  _dashboard.getGuideLocationDetails = function(guideLocations){
    var promises = [];
    var locationDetails = [];

    angular.forEach(guideLocations, function(location){
      if(location.placesRef){
        promises.push(ngGPlacesAPI.placeDetails({reference:location.placesRef}).then(function(l){
          locationDetails.push(l);
        }));
      }
    });

    return $q.all(promises).then(function(){
      return locationDetails;
    });
  }

Where you are handling more then 10 refs, it just doesn't resolve.

photos[0].getUrl() is broken and can't get photos[0].photo_reference

According to Google's documentation, the array photos in the results contains the attributes height, width, html_attributions, and photo_reference. See here: https://developers.google.com/places/web-service/search#PlaceSearchResponses

But with angularjs-google-places there is only height, width and getUrl(). When I call getUrl() something breaks in Places API's javascript and I get this error:

TypeError: Cannot read property 'maxWidth' of undefined
    at AN (http://maps.google.com/maps-api-v3/api/js/23/3/intl/pt_br/util.js:212:133)

If I could get photo_reference I could build the URL by myself, but it's not present as I just said.

Is there an workaround?

keywords

Hello,

It'd be great if we could get the optional keyword parameter. I didn't see it specified in your defaults. I tried using it before looking at your code and it gave me no results.

Cheers

Why filter the keys?

The nearbySearchKeys and placeDetailKeys filter the default values that Google returns, requiring that the user go through lengthy app.config(function(ngGPlacesAPIProvider) { ngGPlaces.... boilerplate before being able to access the elements they need -- like the geometry key that contains each place's GPS! Why are you filtering those? There's no gain since they are already being returned by Google.

Anyhow, thanks for the library.

bower.json issue with "main" path

The library fails to automatically integrate with a grunt build process. The "main" path provided in bower.json and .bower.json points to "google-places.js" instead of "src/angularjs-google-places.js".
I can see the right path in the repository, but when I bower install an version 0.1.0 gets installed with the old paths in "main". Did you register the update with bower?

Could you please correct the path?
Thanks

next_page_token

The places documentation mentioned you can get a next_page_token to point to the next 20 results. I'm just wondering how I can do this to get all the search results.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.