是否可以使用谷歌地理代码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"
}发布于 2016-06-28 21:32:25
不是的。采购产品APO/FPO,PO盒,CEDEX (FR),Postfach ( de ),Apartado de Correos (ES)等。
地理编码器被设计成将街道地址映射到地理坐标。
来自我应该如何格式化地理编码查询,以最大限度地增加成功请求的数量?
我认为在这个常见问题中曾经有一条关于这种邮政地址的明确的线,但是它似乎已经不在了。它们并不总是有一个定义良好的位置,即使它们这样做了,也只是邮政部门知道的,而不是公共API中可能有的东西。
https://stackoverflow.com/questions/27755042
复制相似问题