Atul Chaudhary
Atul Chaudhary

Reputation: 1133

Google API find nearest postal code

Google has release new map API. I was just wondering if it is possible at all to find the nearest first three or five postal code according to user current location by using google javascript API.

Regards

Upvotes: 1

Views: 3684

Answers (1)

MrUpsidown
MrUpsidown

Reputation: 22490

I don't know if this is feasible with Google Maps API, but Geonames has a good API for postal codes.

All their webservices can be found here: http://www.geonames.org/export/JSON-webservices.html

You can create a free account that allows for 30'000 credits daily per application and 2000 credits hourly. Details about credits can be found here: http://www.geonames.org/export/credits.html

Check this example for a reverse geocoding to find nearby postal codes in Australia: http://api.geonames.org/findNearbyPostalCodesJSON?lat=-37&lng=144&username=demo

Hope this helps!

Upvotes: 3

Related Questions