Google Places API与Google地图结果 [英] Google Places API vs Google Maps results

查看:90
本文介绍了Google Places API与Google地图结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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

而谷歌地图显示



美国新泽西州Egg Harbor Township的黑马派克故事书地盘

为什么这种差异?是不是Google Places API会显示Google地图的确切结果?



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



有人可以提出一些解决方案吗?

他们的结果,但我不认为maps.google.com是一个简单的Maps-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

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?

解决方案

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

这篇关于Google Places API与Google地图结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆