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
22
votes
6 answers

Restrict Autocomplete search to a particular country in Google Places Android API

My goal is to restrict the Autocomplete results from the Google Places Android API to a particular country (United States) only. I am using the following API: PendingResult results = …
K.K
  • 2,647
  • 1
  • 26
  • 32
22
votes
5 answers

Google places autocomplete, how to clean up pac-container?

I'm using the google places autocomplete control, and it creates an element for the drop down with a class pac-container. I'm using the autocomplete in an ember app, and when I'm done with it the DOM element the autocomplete is bound to gets…
Charlie
  • 10,227
  • 10
  • 51
  • 92
21
votes
4 answers

How can I make the `PlaceAutocompleteFragment` resolved?

How can I make the PlaceAutocompleteFragment resolved? I am trying to use the new PlaceAutocompleteFragment. I try to use the following code:
Gilian
  • 1,539
  • 2
  • 15
  • 27
21
votes
5 answers

Google Places API: How to use multiple types?

I need a POI API that returns ratings, photos, opening/closing times, etc and I thought Google Places API seemed to do what I want, but I am having some trouble with filtering: I want to use the autocomplete feature with multiple types for…
pookie
  • 3,796
  • 6
  • 49
  • 105
21
votes
2 answers

Retrieve a list of country names using Google places api

How can we get a list of countries/stats/cities in the world using Google places API? Using either google api javascript library or google api web service interface.
Yiling
  • 2,817
  • 2
  • 21
  • 27
21
votes
5 answers

Put google places pac-container inside div?

I am using the google places autocomplete api and when I initialize the auto complete element autocomplete = new google.maps.places.Autocomplete($('#google_places_ac')[0], {}) it appends the .pac-container to the body. I have a div that is…
jakecraige
  • 2,707
  • 4
  • 21
  • 25
21
votes
6 answers

Google Places AutocompleteService filtering by country

I'm setting up a custom autocomplete field where I show locations from Google Places and events from my database that match the search query. For this reason, I'm using the Google Places Autocomplete Service to get the query predictions rather than…
jeznag
  • 4,183
  • 7
  • 35
  • 53
21
votes
6 answers

Google place Api PlaceDetails Photo Reference

I am using Google Place Api where is on some results "photo_reference" (similar to "reference") value. I cannot find any mention about that how to use it to get that photo. I know how to use "reference" to get PlaceDetail and I am sure that usage of…
Pavel
  • 361
  • 1
  • 2
  • 9
20
votes
4 answers

building for iOS Simulator, but linking in object file built for iOS

Before I integrated Google Places in my app, I had no problem running it on simulators, but now I can run my app only on physical devices. I tried excluding arm64, like it was suggested in many answers, but no luck. Full error below: building for…
NoName555
  • 235
  • 1
  • 3
  • 8
20
votes
2 answers

Place Picker Deprecated

I received an email today regarding the Google Place Picker. "The Place Picker is deprecated as of January 29, 2019. This feature will be turned off on July 29, 2019, and will no longer be available after that date. You must install the…
20
votes
2 answers

How long do the new Places API session tokens last?

I have a website that uses address autocomplete on multiple pages--address book, shipping address, billing address. With the billing changes releasing next month, we can convert the Autocomplete process to use sessions instead of individual…
20
votes
2 answers

Google place picker is not launching on Android Mi phones

I am facing a problem with Google Place Picker in Android Redmi Phones version 5.1.1. I am using the following code for launching the Google Place Picker. try { PlacePicker.IntentBuilder builder = new PlacePicker.IntentBuilder(); …
20
votes
3 answers

How to display nearby places like ATM's, hospitals in Android Google Map?

How to display nearby places & place details like ATM's, Hospitals, Restaurants, etc. in Android Google Map This is the link that I used: Showing nearby places & place details using Google Places & Maps API I'm able to fetch my current location but…
19
votes
6 answers

How to get a picture of a place from google maps or places API

I'm using Google Places API to retrieve data about places, but couldn't find how to get a picture of that place, Google Places API just provides icon which is not the same. I need the photo you get when you search for a place in Google Maps in a web…
19
votes
3 answers

google.maps.event.addDomListener() is deprecated, use the standard addEventListener() method instead : Google Place autocomplete Error

I am trying to add Google place auto suggest, I copied the code from the developer's website to try it out but got the error : google.maps.event.addDomListener() is deprecated, use the standard addEventListener() method instead. Also I am not…