【问题标题】:Google's Geocoder returns wrong country for US zip codes 08644Google 的地理编码器为美国邮政编码 08644 返回错误的国家/地区
【发布时间】:2017-05-05 23:00:18
【问题描述】:

我正在使用谷歌地理编码器使用邮政编码自动完成城市和州。我正在使用 { 'address': _query + ' ,US' }。它返回以 08644 开头的地址,而不是具有该邮政编码的城市。

【问题讨论】:

  • 一些更相关的代码会很棒。
  • 调用地理编码器 var options = { componentRestrictions: { country: 'us' } }; $('#' + field).geo_autocomplete(new google.maps.Geocoder, options).result(function (_event, _data) {

标签: jquery google-geocoder


【解决方案1】:

根据美国邮政服务,08644 不是有效的邮政编码:

Source

【讨论】:

    猜你喜欢
    • 2011-01-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多