Google 地理编码 API 给出特定密码的零结果
Google Geocode API giving Zero Results for a particular pincode
密码 121003 google 地理编码 api 没有给出结果,尽管在 google 地图上找到了相同的密码。这可能是什么问题??
https://maps.googleapis.com/maps/api/geocode/json?address=121003&key=API_KEY
如果我将 zipcode:
添加到 URL:
https://maps.googleapis.com/maps/api/geocode/json?address=zipcode:121003&key=API_KEY
它 returns 在印度的结果:
{
"results" : [
{
"address_components" : [
{
"long_name" : "121003",
"short_name" : "121003",
"types" : [ "postal_code" ]
},
{
"long_name" : "Tilpat",
"short_name" : "Tilpat",
"types" : [ "political", "sublocality", "sublocality_level_1" ]
},
{
"long_name" : "Faridabad",
"short_name" : "Faridabad",
"types" : [ "locality", "political" ]
},
{
"long_name" : "Haryana",
"short_name" : "HR",
"types" : [ "administrative_area_level_1", "political" ]
},
{
"long_name" : "India",
"short_name" : "IN",
"types" : [ "country", "political" ]
}
],
密码 121003 google 地理编码 api 没有给出结果,尽管在 google 地图上找到了相同的密码。这可能是什么问题??
https://maps.googleapis.com/maps/api/geocode/json?address=121003&key=API_KEY
如果我将 zipcode:
添加到 URL:
https://maps.googleapis.com/maps/api/geocode/json?address=zipcode:121003&key=API_KEY
它 returns 在印度的结果:
{
"results" : [
{
"address_components" : [
{
"long_name" : "121003",
"short_name" : "121003",
"types" : [ "postal_code" ]
},
{
"long_name" : "Tilpat",
"short_name" : "Tilpat",
"types" : [ "political", "sublocality", "sublocality_level_1" ]
},
{
"long_name" : "Faridabad",
"short_name" : "Faridabad",
"types" : [ "locality", "political" ]
},
{
"long_name" : "Haryana",
"short_name" : "HR",
"types" : [ "administrative_area_level_1", "political" ]
},
{
"long_name" : "India",
"short_name" : "IN",
"types" : [ "country", "political" ]
}
],