Dev
Dev

Reputation: 323

Google Places API results not matching Google Maps

I am trying to use Google Places API to find restaurants nearby to the given postcode. The lat/long that I am using in my API call are the same that are returned by Google Maps website, however the list of restaurants is almost 80% different.

My API call looks like below

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=51.4949254,-0.0138559&type=restaurant&key=API_KEY&radius=1000

What can I do to get more accurate results back from Google Places API, ideally the same list as returned from maps.google.com?

Upvotes: 5

Views: 1349

Answers (2)

Sunil Kumar Sain
Sunil Kumar Sain

Reputation: 105

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=51.4949254,-0.0138559&type=restaurant&key=[API_KEY]&radius=1000

Please check this above link is working for your, Please check your API Key

Upvotes: 0

AndrewR
AndrewR

Reputation: 10889

If you use keyword=restaurant in place of type=restaurant in the query you will get results that are more similar to those returned by the Google Maps website.

Upvotes: 3

Related Questions