【问题标题】:google maps web finds an address/place, but neither places API nor geocoding API finds it谷歌地图网络找到一个地址/地点,但地点 API 和地理编码 API 都找不到它
【发布时间】:2015-01-20 00:11:47
【问题描述】:

(在Google Maps "place" vs "address"转发答案)

假设 google maps web 使用places API,我尝试从places API 获得相同的结果。

对于这个地址:526+Kawailoa+Road,Kailua,Oahu,HI+96734 谷歌地图确实找到了正确的位置。但是地理编码 API 失败,所以我尝试了地方 API:

curl -v 'https://maps.googleapis.com/maps/api/place/textsearch/json?query=526+Kawailoa+Road,Kailua,Oahu,HI+96734&key=MY_API_KEY'

它返回一个空列表。那为什么maps网页能找到,但是places API和geocoding API都没有找到呢?

谢谢杨

【问题讨论】:

标签: google-maps google-maps-api-3


【解决方案1】:

“欧胡岛”混淆了地理编码器(和地点 API)。

如果我在地理编码器中使用“526+Kawailoa+Road,Kailua,HI+96734”,I get a result

如果我将该地址与 places API 一起使用,I also get a result

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-10-01
    • 2018-11-14
    • 1970-01-01
    • 2019-06-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多