Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

i want specific area name provided pincode of that area

I need name of an area and city I pass the postal code as a parameter.

For example I tried

http://maps.google.com/maps/api/geocode/json?address=382340&components=country:in&sensor=false

for a postal code in India.

Although this is giving multiple results with irrelevant data. I could get coordinates using the geocode API. I do not need coordinates though, just the area name corresponding to the postal code. How can I achieve this?

like image 518
nirmesh khandelwal Avatar asked Oct 28 '25 18:10

nirmesh khandelwal


1 Answers

Try this

http://maps.google.com/maps/api/geocode/json?address=india&components=postal_code:400003&sensor=false

This returns the correct results, which could be further trimmed to get the relevant data.

like image 99
adarsh Avatar answered Oct 30 '25 08:10

adarsh