I’m wanting to get an iPhones location data, primarily the city and state, returned in an array. Suggestions?
I’m wanting to get an iPhones location data, primarily the city and state, returned
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
I am not sure what exactly do you want, but I’ll do my best.
geocoding framework (MKReverseGeocoder) which is included in the SDK or you can use some other online service. The biggest caveat of the Google options is that you have to display a Goggle Map onscreen.
There are many online tutorials for this and also many questions on StackOverflow.
This is probably a duplicate of the question below.
How to retrieve user's current city name?
EDIT:
However, if don’t want to use Google Maps then you can use many online reverse geocoding services.
In my last app I have used GeoNames – http://www.geonames.org/ and https://github.com/InfiniteLoopDK/ILGeoNames.
It isn’t very hard to do, just read the description on github well. I hope it helps, good luck 🙂