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
Asked
Active
Viewed 2,256 times
1 Answers
5
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:
I hope this helps!

AlexanderN
- 2,610
- 1
- 26
- 42
-
I'm getting some compile-time errors saying undefined symbols for architecture i386. Did I forget to import something? – Bob Jones Aug 01 '12 at 20:47
-
I am using the newest one, 4.4 – Bob Jones Aug 01 '12 at 20:50
-
@SamJohnson And have you remembered to add the CoreLocation framework? – AlexanderN Aug 01 '12 at 20:53
-
ok, i didn't see your edit. but now i am getting errors saying use of undeclared identifier – Bob Jones Aug 01 '12 at 20:53
-
@SamJohnson Have you also remembered to import CoreLocation in your .h file like this?: #import
– AlexanderN Aug 01 '12 at 20:56 -
Maybe try to fix the errors yourself first and then get back to me if you cant. CLGeocoder is definitely the way to go though. – AlexanderN Aug 01 '12 at 21:09
-
all right after exploring for awhile in the library i found what i was looking for. thanks for your time! – Bob Jones Aug 02 '12 at 17:59