Google Places API vs Google Maps results

2020-03-29 10:17发布

I see some results on Google Maps but its not coming through Google Places API.

https://maps.googleapis.com/maps/api/place/nearbysearch/json?key=my_api_key&sensor=false&radius=50000&location=40.338254%2C-74.585292&keyword=storybook+land

whereas google maps shows

Storybook Land, Black Horse Pike, Egg Harbor Township, NJ, United States

Why this discrepancy? Is it not that Google Places API will show the exact results of Google Maps?

I observed these kind of discrepancies in few other results also.

Can somebody throw some light?

1条回答
Melony?
2楼-- · 2020-03-29 10:36

I think you must ask google about the way they get their results, but I don't think that maps.google.com is a simple implementation of the Maps-API/Services.

However, textSearch will give you the result: https://maps.googleapis.com/maps/api/place/textsearch/json?key=yourKey&sensor=false&radius=50000&location=40.338254%2C-74.585292&query=storybook+land

查看更多
登录 后发表回答