Get zip code from latitude, longitude?

Viewed 24088

I want to get zip code from users current location(Latitude, Longitude), I had used MKReverse Geocoder delegate methods, but sometimes I am not able to get zip code information based on latitude & longitude (valid values). Are there any other alternatives for MKReverseGeocoder ? ZipCode database are specific to countries, that's why I don't want to use them. Any other idea or clue?

Thanks

5 Answers

If you have a free db (available from that site? Just search for zip code database and you'll see it)

then you can run an internal SQL query testing for nearby lat/longs. That way you won't need to worry about licensing a web service.

You have three options then. SQL BETWEEN statement, the hypotenuse equation, or Haversine. Haversine being the best, luckily it's tutorial'd elsewhere

Related