tags:

views:

51

answers:

2

Hi, I am Looking for free online webservice for getting zipcode(/postalcode) from lat, long ?

There is one :

http://ws.geonames.org/findNearbyPostalCodesxml?formatted=true&lat=latValue&lng=longValue

but its not working.....!

Do you know other than this...?

Thanks

+5  A: 

Since your question is tagged iPhone, I assume you're doing this on the iPhone. If that's the case, why not just use MapKit?

Use the MKReverseGeocoder class which, given your latitude/longitude pair, will send -reverseGeocoder:didFindPlaceMark: to its delegate. The placemark has a postalCode property.

If you really need a web service, I've looked at the following services for geocoding (not reverse-geocoding). You might want to look at them to see if any of them suits your needs:

I've done limited testing of each of these services with the exception of TeleAtlas. For my purposes, Google and Tiny Geocoder returned the best results. YMMV.

Jay O'Conor
I know that but MKReverseGeocoder not accurate.
Matrix
I have also found that sometimes i am not getting postalCode value while working with reverseGeocoder:didFindPlaceMark:
Matrix
Matrix: My understanding is MKReverseGeocoder uses Google Maps data, so it's as accurate as Google is.
Jay O'Conor
Thanks. ........
Matrix
A: 

CloudMade supports reverse geocoding...

PavelS