【发布时间】:2016-12-28 22:11:15
【问题描述】:
我无法让谷歌的地理编码 api 识别地址:
广场 12
Am Flughafen
60549 法兰克福
德国
Squaire 是法兰克福机场的一座建筑。它似乎没有正常的街道地址,但 The Squaire 的许多企业都有像“The Squaire NUMBER”这样的地址。例如:
- 亚历克斯:The Squaire 17, 60549 Frankfurt am Main, Germany
- 比尔芬格设施服务有限公司:THE SQUAIRE 13, Am Flughafen, 60549 Frankfurt am Main, Germany
但无论我做什么,我都无法在以下位置获得 google geocode api 识别的地址:
- The Squaire 12, Am Flughafen, 60549 Frankfurt am Main, Germany
- The Squaire 12, 60549 Frankfurt am Main, Germany
- 还有很多其他变化
令人抓狂的是,当我在机场附近搜索“squaire”时,places API 会找到我正在寻找的地方:
匹配结果有:place_id: ChIJY9ZMLL4KvUcRxZhQ3e-7ask。当我查询详细信息端点时:
https://maps.googleapis.com/maps/api/place/details/json?key=XYZ&placeid=ChIJY9ZMLL4KvUcRxZhQ3e-7ask
我收到了formatted_address: "THE Squaire 12, Am Flughafen, 60549 Frankfurt am Main, Germany",但这正是地理编码 api 中无法使用的地址。
当我使用带有 place_id 的反向地理编码 api 时:
https://maps.googleapis.com/maps/api/geocode/json?key=XYZ&place_id=ChIJY9ZMLL4KvUcRxZhQ3e-7ask
我收到formatted_address: "plug and work Frankfurt, THE SQUAIRE Conference Center, THE Squaire 12, Am Flughafen, 60549 Frankfurt am Main, Germany"。在正向地理编码 api 中仍然不起作用:
【问题讨论】:
-
为什么是-1?否决的选民可以发表评论,以便我可以更好地提出问题吗?
-
@miguev 这个问题先开放
-
是的,确实,但另一个问题有当前正确的答案。这里的答案以前是正确的,但现在不再正确,因为问题 10585 已修复。研究这个问题的开发人员将从研究另一个问题中受益匪浅。如果有更好的方法来鼓励这种“转发”,我不知道,请告诉我们。
-
@miguev 另一个问题具有当前正确答案的唯一原因是因为您在那里回答了它。如果您在此处输入相同的答案,我将在此处将其标记为正确(如果不是,我可以自行回答)。对于其他提出这个问题的人,正确的问题是11031。
标签: google-maps google-api google-places-api google-geocoder google-geocoding-api