Google Places API vs Google Maps results

匿名 (未验证) 提交于 2019-12-03 01:12:01

问题:

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:

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



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!