Google Places API 与 Google 地图结果

niz*_*.sp 5 google-maps google-places-api

我在 Google 地图上看到了一些结果,但它不是通过 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

而谷歌地图显示

Storybook Land, Black Horse Pike, 蛋港镇, 新泽西州, 美国

为什么会出现这种差异?难道 Google Places API 不会显示 Google Maps 的准确结果吗?

我在其他一些结果中也观察到了这种差异。

有人可以提供一些线索吗?

Dr.*_*lle 0

我认为你必须询问谷歌他们获取结果的方式,但我不认为maps.google.com是地图API/服务的简单实现。

但是, textSearch会给您结果:https://maps.googleapis.com/maps/api/place/textsearch/json ?key=yourKey&sensor=false&radius=50000&location=40.338254%2C-74.585292&query=storybook+land