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

4802 questions
140
votes
5 answers

ApiNotActivatedMapError for simple html page using google-places-api

I'm trying to create a simple html page (I'd later like to add an autocomplete input there) that include google-places-api. I have an api-key (which is enabled) but I still get an error message. Here is my html-
Roy
  • 1,968
  • 3
  • 14
  • 12
120
votes
3 answers

What is the `sensor` parameter for in the Google Places API?

The Google Places API requests have a sensor parameter? How does this parameter affect the results?
TN.
  • 17,602
  • 25
  • 84
  • 141
111
votes
13 answers

This IP, site or mobile application is not authorized to use this API key

I am using https://maps.googleapis.com/maps/api/geocode/json? link with server key and user IP to find the latitude and longitude of any address, when I'm trying I find the error as I have a server access key from google and I have put my server's…
user3336944
  • 1,129
  • 2
  • 7
  • 3
53
votes
14 answers

Android Place Picker closes immediately after launch

I am developing an android application as part of a project, and am using Google places API to display places of interest based on location. I am using the PlacePicker Inentbuilder to accomplish this. However, when the app is run, the place picker…
Sampath Janardhan
  • 1,181
  • 1
  • 8
  • 10
51
votes
8 answers

Google Place API - No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access

I am using Google Place API. What I want to get suggestion of place for type helping. So, what I have done is- var Google_Places_API_KEY = "AIzaSyAK08OEC-B2kSyWfSdeCzdIkVnT44bcBwM"; //Get it from -…
Abrar Jahin
  • 11,997
  • 20
  • 91
  • 139
51
votes
12 answers

get Lat Lang from a place_id returned by autocomplete place api

I am searching the place in my apps using the google autocomplete place api and now I want to get latitude and longitude of the place that i have searched. How to get latitude and longitude from the result returned by autocomplete place api by…
50
votes
4 answers

Show Current Location and Nearby Places and Route between two places using Google Maps API in Android

I need to develop an application using Google Maps in Android to locate my current location and need to find nearest location. (For example: Nearby police station from my current location.) It should accept my current location and output should…
agiles
  • 1,631
  • 3
  • 16
  • 18
47
votes
1 answer

What is a good, unlimited alternative to Google Places API?

For my project I've been relying on the Places API to search for POI's based on a desired query string and distance from a given point. As things are scaling up, however, I'm hitting the usage limits for Places really fast. Does anyone know of…
RogerWang
  • 1,804
  • 3
  • 13
  • 18
46
votes
3 answers

Detect the nearest transit stop from the given location

I need to get all the nearby public transit information within certain distance from a given location. The type of public transit can be either bus, train, etc.. Here is what I meant: If I use Google Map to query "Transit Stop near a Location…
Yeo
  • 9,853
  • 6
  • 57
  • 83
45
votes
1 answer

Google places API - popular times

Does anybody know if Google expose the new 'Popular times' information in the places API? and if not is there another API I can use to get a locations popularity?
colinl
  • 451
  • 1
  • 4
  • 3
42
votes
5 answers

Getting "The provided API key is expired." error on using Places API

I have generated Server key from Google console for Places API key. But whenever i am hitting the service i am getting " The provided API key is expired " error. I have tried regenerating the key but still got same error.
Android14
  • 793
  • 1
  • 6
  • 16
39
votes
7 answers

Obtaining more than 20 results with Google Places API

I want to develop a map application which will display the banks near a given place. I use the Places library to search and everytime it just return 20 results. What should I do if I want more results?
Demon
  • 403
  • 1
  • 4
  • 5
39
votes
2 answers

Google Places Search - Next Page Token returns same results

When I call https://maps.googleapis.com/maps/api/place/nearbysearch/xml?location=42.9825,-81.254&radius=50000&name=Medical%22Clinic&sensor=false&key=[KEY GOES HERE] I get a set of results with next_page_token being available now if i do the…
Zoinky
  • 3,249
  • 9
  • 31
  • 67
37
votes
6 answers

How to get all places (or specific type of place such as a restaurant) in a city or country with Google Places API?

I am trying to find all "restaurants" or "insurance agencies" for example, in a city or country. Okay, maybe a country is too broad but mainly large cities. I am using the Google Places API and python but I see that you can only use a "radius"…
Marcus Johnson
  • 1,923
  • 5
  • 18
  • 26
34
votes
7 answers

Google Places API place_id field length

Google has marked the reference and id fields as deprecated as of June 24th 2014, and replaced it with a single place_id. I've so far only seen place_id lengths of exactly 27 characters, but wonder if there is any documentation for this length? I…
preyz
  • 2,569
  • 3
  • 24
  • 34
1
2 3
99 100