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 9001071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:23:18+00:00 2026-06-16T00:23:18+00:00

I am using CoreLocation to get a user’s latitude and longitude coordinates. Is there

  • 0

I am using CoreLocation to get a user’s latitude and longitude coordinates. Is there a simple or standardized way to get the user’s state prefix? For example, if the user launched the app from California, I would get CA? I would prefer not to use a third party application that I need to send the geo-coordinates to. It would be great if I could just create a method like the one I am using to get the latitude below.

- (NSString *)getUserLatitude
{
NSString *userLatitude = [NSString stringWithFormat:@"%f", 
locationManager.location.coordinate.latitude];
return userLatitude;
}

Please let me know if you have any ideas. Thank you!

  • 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-06-16T00:23:19+00:00Added an answer on June 16, 2026 at 12:23 am

    You have to use the reverse geocoding feature of CLGeocoder.

    Specifically you need to use the method reverseGeocodeLocation:completionHandler: that will return to your completionHandler a CLPlacemark object.

    Such object will have many user-friendly geographical information and you may want to use its administrativeArea property which, according to the doc, will contain what you’re looking for, if available.

    administrativeArea

    The state or province associated with the
    placemark. (read-only)

    @property(nonatomic, readonly) NSString *administrativeArea

    Discussion
    If the placemark location is Apple’s headquarters, for example, the
    value for this property would be the string “CA” or “California”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I am using CoreLocation to get latitude and longitude in my map application
I am using the CoreLocation framework to get my speed and distance to calculate
How to get current latitude & longitude without - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation*)newLocation fromLocation:(CLLocation *)oldLocation
I have many coordinates that I am plotting using a MKMapOverlay and CoreLocation and
I am using Core Location in iOS to get GPS coordinates. I would like
I'm using CoreLocation and am starting the locationManager from within my applications AppDelegate. Example
Hi there I am using corelocation in my app and everything works fine and
I am using iOS SDK 4.2 and followed this tutorial: http://mobileorchard.com/hello-there-a-corelocation-tutorial/ , and got
basically I have an application which records the user's locations(the longitude and longitude) using
I am trying to find the location of user using corelocation framework in my

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.