【问题标题】:Google Apis Geocode inconsistencies in short_name (same language)短名称(相同语言)中的 Google API 地理编码不一致
【发布时间】:2017-08-23 14:52:20
【问题描述】:

我正在使用 Google API Geocodes 从给定地址检索管理级别。如果我尝试使用西班牙巴利亚多利德 (http://maps.google.com/maps/api/geocode/json?sensor=false&address=Valladolid,Spain&language=en),我会得到管理性区域级别_2.short_name: VA。

{
"long_name": "Valladolid",
"short_name": "VA",
"types": [
"administrative_area_level_2",
"political"
]
},

但如果我尝试西班牙塞维利亚 (http://maps.google.com/maps/api/geocode/json?sensor=false&address=Seville,Spain&language=en):

{
"long_name": "Seville",
"short_name": "Seville",
"types": [
"administrative_area_level_2",
"political"
]
},

简称是 Seville 而不是 SE。

有人知道如何跳过这个问题吗?我正在与多个国家/地区合作,其中一些国家/地区存在此问题。

提前致谢。

【问题讨论】:

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


    【解决方案1】:

    我不能肯定地说,但这可能是 Google 方面的数据问题。我想巴利亚多利德的行政区域 2 级在数据库中存储了一个缩写值,而塞维利亚的行政区域 2 级没有存储缩写值,因此地理编码 API 使用完整名称。

    您应该向 Google 发送反馈。在谷歌地图中打开塞维利亚行政区 2 级

    https://www.google.com/maps/place/Seville/@37.5145054,-6.7170897,8z/data=!3m1!4b1!4m5!3m4!1s0xd12f2dae16bd169:0x30463fd8c9fcbc0!8m2!3d37.3376829!4d-5.5617279

    然后点击发送反馈,如我的屏幕截图所示

    我希望这会有所帮助!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-12-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-22
      • 2011-09-10
      相关资源
      最近更新 更多