Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6996551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:10:18+00:00 2026-05-27T20:10:18+00:00

Is it possible to reverse Geocode your current location on SDK 3.x? I need

  • 0

Is it possible to reverse Geocode your current location on SDK 3.x? I need to simply get the zip code of the current location. The only examples I’ve seen use CoreLocation which I dont think was introduced until SDK 4.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:10:19+00:00Added an answer on May 27, 2026 at 8:10 pm

    You can use MKReverseGeocoder from 3.0 through 5.0. Since 5.0 MKReverseGeocoder is depreciated and usage of CLGeocoder is advised.

    You should use CLGeocoder if available. In order to be able to extract address information you would have to include Address Book framework.

    #import <AddressBookUI/AddressBookUI.h>
    #import <CoreLocation/CLGeocoder.h>
    #import <CoreLocation/CLPlacemark.h>
    
    - (void)reverseGeocodeLocation:(CLLocation *)location
    { 
        CLGeocoder* reverseGeocoder = [[CLGeocoder alloc] init];
        if (reverseGeocoder) {
            [reverseGeocoder reverseGeocodeLocation:location completionHandler:^(NSArray *placemarks, NSError *error) {
                CLPlacemark* placemark = [placemarks firstObject];
                if (placemark) {
                    //Using blocks, get zip code
                    NSString* zipCode = [placemark.addressDictionary objectForKey:(NSString*)kABPersonAddressZIPKey];
                }
            }];
        }else{
            MKReverseGeocoder* rev = [[MKReverseGeocoder alloc] initWithCoordinate:location.coordinate];
            rev.delegate = self;//using delegate
            [rev start];
            //[rev release]; release when appropriate
        }
        //[reverseGeocoder release];release when appropriate
    }
    

    MKReverseGeocoder delegate method:

    - (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark
    {
        //Get zip code
        NSString* zipCode = [placemark.addressDictionary objectForKey:(NSString*)kABPersonAddressZIPKey];
    }
    

    MKReverseGeocoder and ABPersonAddressZIPKey were deprecated in iOS 9.0. Instead the postalcode property of the CLPlacemark can be used to get zip code:

    NSString * zipCode = placemark.postalCode;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Reverse Geocoding With Google Map API And PHP To Get Nearest Location
Possible Duplicate: Protect .NET code from reverse engineering? we just develop a application with
Is it possible to configure Hibernate reverse engineering and code generation tool in such
Is it possible to reverse a list in Prolog with only two arguments? Such
I've seen that it's possible to get the latitude and longitude (geocoding, like in
Is it possible to do reverse execution in Eclipse debugger? The current project I'm
Possible Duplicate: Protect .NET code from reverse engineering? I want to make my software
I know it's possible to match a word and then reverse the matches using
Many years ago, I was admonished to, whenever possible, release resources in reverse order
Possible Duplicates: Is it possible to decrypt md5 hashes? Is it possible to reverse

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.