Reverse geocoding in xcode

2.2k Views Asked by At

I am making an app that takes your current location and determines the tax of the state you're in. So, I need to use reverse geocoding. I have found a few tutorials and similar questions on this site, but I haven't found anything that pertains to xcode, isn't outdated, and shows me what I need to do (more than an api). If anyone can help me, even by just giving me a link to a good tutorial, it would be greatly appreciated

1

There are 1 best solutions below

7
On BEST ANSWER

MKReverseGeocoder is deprecated as of iOS 5.0, so you have to use the class CLGeoCoder and a method called reverseGeocodeLocation.

Luckily for you, Apple has even an example on how to achieve what you are looking for.

Look out for "Geocoding a location using CLGeocoder" in the link below:

http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/LocationAwarenessPG/UsingGeocoders/UsingGeocoders.html

I hope this helps!