【问题标题】:Google maps API does not return postal code for "Chile" based addressesGoogle 地图 API 不返回基于“智利”的地址的邮政编码
【发布时间】:2018-08-29 23:11:49
【问题描述】:

当我尝试使用 Google 地图地理编码 API 获取地址的邮政编码时,它可以工作,邮政编码作为 address_components 数组的一部分返回:(例如: https://maps.googleapis.com/maps/api/geocode/json?&address=socoma%201%2C%20marrakesh)。

但是对于基于智利(国家)的地址,它似乎没有返回邮政编码:(例如: https://maps.googleapis.com/maps/api/geocode/json?&address=las%20condes%20santiago%20chile)。

知道为什么会非常感激。

【问题讨论】:

    标签: google-maps reverse-geocoding google-geocoding-api


    【解决方案1】:

    我在维基百科中查看了有关 Las Condes 地区的信息

    https://en.wikipedia.org/wiki/Las_Condes

    发现拉斯孔德斯的邮政编码应该是 7550000:

    https://worldpostalcode.com/chile/region-metropolitana-de-santiago/santiago/las-condes

    现在我尝试使用组件过滤在智利搜索邮政编码 7550000,这是邮政编码查找的推荐方式

    https://maps.googleapis.com/maps/api/geocode/json?components=postal_code%3A7550000%7Ccountry%3ACL&key=MY_API_KEY

    这个请求返回

    {
        "results":[
        ],
        "status":"ZERO_RESULTS"
    }
    

    因此,此时 Google 数据库中似乎缺少邮政编码 7550000,并且您遇到了数据问题。为了解决数据问题,您应该按照文档向 Google 报告:

    https://support.google.com/maps/answer/3094088

    希望 Google 能尽快添加缺少的邮政编码。

    【讨论】:

    • 感谢您的彻底调查,我会向 Google 报告,希望他们可以添加修复。
    猜你喜欢
    • 2016-07-20
    • 2018-10-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-02
    • 2017-10-04
    • 1970-01-01
    • 2014-01-24
    相关资源
    最近更新 更多