google-maps - Google Places API 结果与 Google map 不匹配

标签 google-maps google-places-api

我正在尝试使用 Google Places API 查找给定邮政编码附近的餐馆。我在 API 调用中使用的纬度/经度与 Google map 网站返回的纬度/经度相同,但餐厅列表几乎有 80% 不同。

我的 API 调用如下所示

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

如何才能从 Google Places API 获取更准确的结果(最好与从maps.google.com 返回的列表相同)?

最佳答案

如果您在查询中使用 keyword=restaurant 代替 type=restaurant,您将获得与 Google map 网站返回的结果更加相似的结果。

关于google-maps - Google Places API 结果与 Google map 不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42417628/

相关文章:

javascript - map 中心永远不在允许的范围内

android - 适用于 MonoDroid 的 Google map 解决方案

java - 如何在没有双重请求的情况下使用 Google Places API 获取特定类型的 Lat Longs 列表?

javascript - 计算多个位置谷歌地图的距离

android - 如何在 google map v2 marker android 中添加值?

java - 是否可以使用 Google Locations 验证邮政地址

google-maps - Google Places API - 获取地址、电话号码等

javascript - 谷歌地图放置自动完成加载事件

javascript - Google地点自动完成删除要查询的国家/地区

javascript - 放大标记 google.maps