【问题标题】:google geocode API APO/FPO AE zip codes谷歌地理编码 API APO/FPO AE 邮政编码
【发布时间】:2016-06-29 05:32:25
【问题描述】:

是否可以使用 google geocode API 按邮政编码检索 APO/FPO 城市类型?

我希望在使用以下调用时看到一个 AE APO/FPO 城市返回: http://maps.googleapis.com/maps/api/geocode/json?address=09002

这是没有 AE APO/FPO 结果的调用的响应:

{
   "results" : [    
{
         "address_components" : [
            {
               "long_name" : "090 02",
               "short_name" : "090 02",
               "types" : [ "postal_code" ]
            },
            {
               "long_name" : "Slovakia",
               "short_name" : "SK",
               "types" : [ "country", "political" ]
            }
         ],
         "formatted_address" : "090 02, Slovakia",
         "geometry" : {
            "bounds" : {
               "northeast" : {
                  "lat" : 49.44115799999999,
                  "lng" : 21.6030916
               },
               "southwest" : {
                  "lat" : 49.349641,
                  "lng" : 21.5185274
               }
            },
            "location" : {
               "lat" : 49.3956347,
               "lng" : 21.5604493
            },
            "location_type" : "APPROXIMATE",
            "viewport" : {
               "northeast" : {
                  "lat" : 49.44115799999999,
                  "lng" : 21.6030916
               },
               "southwest" : {
                  "lat" : 49.349641,
                  "lng" : 21.5185274
               }
            }
         },
         "types" : [ "postal_code" ]
      },
      {
         "address_components" : [
            {
               "long_name" : "09002",
               "short_name" : "09002",
               "types" : [ "postal_code" ]
            },
            {
               "long_name" : "Burgos",
               "short_name" : "Burgos",
               "types" : [ "locality", "political" ]
            },
            {
               "long_name" : "Burgos",
               "short_name" : "Burgos",
               "types" : [ "administrative_area_level_4", "political" ]
            },
            {
               "long_name" : "Alfoz de Burgos",
               "short_name" : "Alfoz de Burgos",
               "types" : [ "administrative_area_level_3", "political" ]
            },
            {
               "long_name" : "Burgos",
               "short_name" : "Burgos",
               "types" : [ "administrative_area_level_2", "political" ]
            },
            {
               "long_name" : "Castilla y León",
               "short_name" : "CL",
               "types" : [ "administrative_area_level_1", "political" ]
            },
            {
               "long_name" : "Spain",
               "short_name" : "ES",
               "types" : [ "country", "political" ]
            }
         ],
         "formatted_address" : "09002 Burgos, Burgos, Spain",
         "geometry" : {
            "bounds" : {
               "northeast" : {
                  "lat" : 42.3444933,
                  "lng" : -3.6652428
               },
               "southwest" : {
                  "lat" : 42.3230844,
                  "lng" : -3.7058517
               }
            },
            "location" : {
               "lat" : 42.33233389999999,
               "lng" : -3.685144
            },
            "location_type" : "APPROXIMATE",
            "viewport" : {
               "northeast" : {
                  "lat" : 42.3444933,
                  "lng" : -3.6652428
               },
               "southwest" : {
                  "lat" : 42.3230844,
                  "lng" : -3.7058517
               }
            }
         },
         "types" : [ "postal_code" ]
      },
      {
         "address_components" : [
            {
               "long_name" : "09001",
               "short_name" : "09001",
               "types" : [ "postal_code" ]
            },
            {
               "long_name" : "Skvyra",
               "short_name" : "Skvyra",
               "types" : [ "locality", "political" ]
            },
            {
               "long_name" : "Skvyrs'kyi district",
               "short_name" : "Skvyrs'kyi district",
               "types" : [ "administrative_area_level_2", "political" ]
            },
            {
               "long_name" : "Kyivs'ka oblast",
               "short_name" : "Kyivs'ka oblast",
               "types" : [ "administrative_area_level_1", "political" ]
            },
            {
               "long_name" : "Ukraine",
               "short_name" : "UA",
               "types" : [ "country", "political" ]
            }
         ],
         "formatted_address" : "Skvyra, Kyivs'ka oblast, Ukraine, 09001",
         "geometry" : {
            "bounds" : {
               "northeast" : {
                  "lat" : 49.7594089,
                  "lng" : 29.6990729
               },
               "southwest" : {
                  "lat" : 49.705082,
                  "lng" : 29.602385
               }
            },
            "location" : {
               "lat" : 49.7328752,
               "lng" : 29.6642904
            },
            "location_type" : "APPROXIMATE",
            "viewport" : {
               "northeast" : {
                  "lat" : 49.7594089,
                  "lng" : 29.6990729
               },
               "southwest" : {
                  "lat" : 49.705082,
                  "lng" : 29.602385
               }
            }
         },
         "types" : [ "postal_code" ]
      },
      {
         "address_components" : [
            {
               "long_name" : "Aigues-Vives",
               "short_name" : "Aigues-Vives",
               "types" : [ "locality", "political" ]
            },
            {
               "long_name" : "Ariege",
               "short_name" : "09",
               "types" : [ "administrative_area_level_2", "political" ]
            },
            {
               "long_name" : "Midi-Pyrénées",
               "short_name" : "Midi-Pyrénées",
               "types" : [ "administrative_area_level_1", "political" ]
            },
            {
               "long_name" : "France",
               "short_name" : "FR",
               "types" : [ "country", "political" ]
            }
         ],
         "formatted_address" : "Aigues-Vives, France",
         "geometry" : {
            "bounds" : {
               "northeast" : {
                  "lat" : 43.013482,
                  "lng" : 1.896125
               },
               "southwest" : {
                  "lat" : 42.985824,
                  "lng" : 1.8600101
               }
            },
            "location" : {
               "lat" : 42.99632,
               "lng" : 1.874977
            },
            "location_type" : "APPROXIMATE",
            "viewport" : {
               "northeast" : {
                  "lat" : 43.013482,
                  "lng" : 1.896125
               },
               "southwest" : {
                  "lat" : 42.985824,
                  "lng" : 1.8600101
               }
            }
         },
         "types" : [ "locality", "political" ]
      }
   ],
   "status" : "OK"
}

【问题讨论】:

    标签: google-geocoding-api


    【解决方案1】:

    没有。 APO/FPO、邮政信箱、CEDEX (FR)、Postfach (DE)、Apartado de Correos (ES) 等...

    地理编码器旨在将街道地址映射到地理坐标

    来自How should I format my geocoder queries to maximise the number of successful requests?

    我认为在这个常见问题解答中曾经有关于此类邮政地址的明确说明,但似乎不再存在。它们并不总是有一个明确定义的位置,即使它们有,也只有邮政服务知道,而不是公共 API 中可能存在的东西。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-08-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多