for a pincode 121003 google geocode api is not giving results although the same pincode is being found out on google maps. What could be the possible issue here ??
https://maps.googleapis.com/maps/api/geocode/json?address=121003&key=API_KEY
for a pincode 121003 google geocode api is not giving results although the same pincode is being found out on google maps. What could be the possible issue here ??
https://maps.googleapis.com/maps/api/geocode/json?address=121003&key=API_KEY
If I add zipcode:
to that URL:
https://maps.googleapis.com/maps/api/geocode/json?address=zipcode:121003&key=API_KEY
It returns a result in India:
{
"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" ]
}
],