google-places
How to fire place_changed event for Google places auto-complete on Enter key
Adapted from Jonathan Caulfield’s answer: $(‘.search-location’).keypress(function(e) { if (e.which == 13) { google.maps.event.trigger(autocomplete, ‘place_changed’); return false; } });
Google Places Autocomplete – Pick first result on Enter key? [duplicate]
I’ve read the many answers of this question, and of the linked questions’ answers so many times, before finding that the best answer is this one (Nota: sadly, it’s not the accepted answer!). I’ve modified 2 or 3 lines to turn it into a ready-to-use function that you can copy/paste in your code and apply … Read more
google places library without map
As documented the PlacesService accepts as argument either a map or an node where to render the attributions for the results. So you only have to use the node (a node being an html element) instead of the map. Please note: hiding the attributions violates the places-policies(also hiding the map when used as argument, because … Read more
ApiNotActivatedMapError for simple html page using google-places-api
To enable Api do this Go to API Manager Click on Overview Search for Google Maps JavaScript API(Under Google Maps APIs). Click on that You will find Enable button there. Click to enable API. OR You can try this url: Maps JavaScript API Hope this will solve the problem of enabling API.