是否可以使用谷歌地理编码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"
}
答案 0 :(得分:0)
没有。 APO / FPO,PO Boxes,CEDEX(FR),Postfach(DE),Apartado de Correos(ES)等......
地理编码器旨在将街道地址映射到地理坐标。
来自How should I format my geocoder queries to maximise the number of successful requests?
我认为在这个常见问题解答中,过去常常有关于这类邮政地址的明确界限,但似乎不再存在。这些并不总是有一个定义明确的位置,即使他们这样做只是邮政服务所知,而不是公共API中的东西。