Questions tagged [google-places-api]

The Google Places API is a service that returns information about places using HTTP requests. Places are defined within this API as establishments, geographic locations, or prominent points of interest.

The Google Places API is a service that returns information about places using HTTP requests. Places are defined within this API as establishments, geographic locations, or prominent points of interest.

The Places API is also available with the Java Client, Python Client, Go Client and Node.js Client for Google Maps Services. The Places API and the client libraries are for use in server applications.

If you're building a client-side application, take a look at the Places SDK for Android, the Places SDK for iOS, and the Places Library, Maps JavaScript API.

Links

Related tags

4993 questions
37
votes
5 answers

Google Places Autocomplete not showing up

I've been working on this for hours trying to figure out why the supposedly simple autocomplete wasn't showing up. It turns out that in my code, the input element is being set to autocompete="off", and the style on the pac-container is display:…
pedalpete
  • 21,076
  • 45
  • 128
  • 239
37
votes
9 answers

Google Places Autocomplete - Pick first result on Enter key?

I'm using a Google Places Autocomplete and I simply want it to select the top item in the results list when the enter key is pressed in the form field and suggestions exist. I know this has been asked before: Google maps Places API V3 autocomplete…
36
votes
1 answer

Change default text "Enter a Location" In Google Maps Places API

I've looked all over the internet trying to find an answer to my problem, and the closest thing I've found to an answer is another Stack Overflow question, here: How do i change the default text in Google Maps API Places Autocomplete The problem is…
35
votes
5 answers

PlaceResult object returns latitude/longitude as object, not sure how to get them individually

I'm testing out the Google Places autocomplete feature here: https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete I want to get the latitude and longitude of the Place, but I'm having some troubles. When I use the…
dallen
  • 2,621
  • 7
  • 37
  • 47
33
votes
12 answers

InvalidValueError: not an instance of HTMLInputElement

FYI, I'm not a JavaScript Ninja but felt like I'll become one when I did a lot of things based on Google Maps recently. I implemented a map. User can search for google places and place a marker for it. there's a text box for that. Or user can click…
32
votes
3 answers

Restrict Google Places Autocomplete to return addresses only

autocomplete = new google.maps.places.Autocomplete(input, { types: ['geocode'] }); returns streets and cities amongst other larger areas. Is it possible to restrict to streets only?
randomguy
  • 12,042
  • 16
  • 71
  • 101
31
votes
4 answers

How to customize PlaceAutocomplete widget dialog design to list places

I need to show a list of places in dropdown using google placeAutocomplete widgets. Here I'm getting dialog to show places according to my query but I need to give a custom design for that search result dialog as in Uber, Ola apps. Here I want a…
Moorthy
  • 723
  • 1
  • 6
  • 20
31
votes
13 answers

Google Places Autocomplete Force Selection

I am using the JavaScript Google places autocomplete API v3. It works fine but I was wondering if there was a way to force the selection from the autocomplete, that is input that will not accept any free form text. I looked at the docs and didn't…
TheMethod
  • 2,893
  • 9
  • 41
  • 72
30
votes
2 answers

Google places API returning only 5 results

I am using Google places API, It returns only top 5 search results. Is there any way to increase the count. e.g. URL I have searched for keyword…
Jitender Dev
  • 6,907
  • 2
  • 24
  • 35
30
votes
3 answers

Google Places API Violation

I am using Google Places API to pull a list of resturants, and I am displaying them on map. However, since Apple has switched there map services over from Google in iOS 6.0, I am now in violation of Google's terms of use, which states that you must…
Vikings
  • 2,527
  • 32
  • 45
29
votes
3 answers

Google API keys - What is server key and browser key

I ma using google maps in my app, and use the URL as following format without the API key- values, Now I need to use the…
user2591141
28
votes
9 answers

Android Places API: Google Play Services Out of Date on Emulator

I am attempting to utilize the Google Places API's PlacePicker in my Android app. However, whenever I attempt to create the picker, I receive the following error message: Google Play services out of date. Requires 7095000 but found…
28
votes
10 answers

Adding Multiple Instances of Google Places on Same Page

I'm looking to include 2 instances of Google Places auto-complete on the same page. Looking to setup an input for a Pickup Location and an input for a Dropoff Location. I'm assuming it has to do with the ID of the input element, but even when I…
Colin Keany
  • 309
  • 1
  • 3
  • 9
28
votes
5 answers

Google Places Autocomplete suggestions with Unit No/Subpremise is not coming in the response array

I am using Google places API to auto-complete addresses using javascript When I type the unit number and street number of address in the input box it shows the results in suggestion drop-down but when I select the address the listener for action…
Torukmakto
  • 340
  • 1
  • 3
  • 11
28
votes
1 answer

difference between a nearby search and a text search in Google Places API

Whats the difference between a nearby Search and a text Search in Google Places API? For example, a nearby Search for cafe within a radius of 1km returns only 1 result using …
Ishan
  • 3,931
  • 11
  • 37
  • 59