我正在使用Google API来获取位置详细信息,例如城市,州和国家/地区。
加拿大 链接-https://maps.googleapis.com/maps/api/geocode/json?key=AIza **** _ ZKqQz0 ********* lzdHOl7MQzI-x08&address = A1A1A1&sensor = false
结果
{
"results" : [],
"status" : "ZERO_RESULTS"
}
但是对于美国 链接-https://maps.googleapis.com/maps/api/geocode/json?key=AIz **** _ ZKqQz0ht ******* WlzdHOl7MQzI-x08&address = 33307&sensor = false
响应
"results" : [
{
"address_components" : [
{
"long_name" : "33307",
"short_name" : "33307",
"types" : [ "postal_code" ]
},
{
"long_name" : "Lake Ridge",
"short_name" : "Lake Ridge",
"types" : [ "neighborhood", "political" ]
},
{
"long_name" : "Oakland Park",
"short_name" : "Oakland Park",
"types" : [ "locality", "political" ]
},
}
谁能知道,为什么此API不适用于加拿大邮政编码。
预先感谢