Accessing name of location programatically?

You know how when you take a picture Apple geotags the picture with a description of the location of where the photo was taken? How do I access this location description programatically so when I'm located in a park, I can push a button in my app and it will fill up a textbox with the name of the park?


Thanks in advance and if this quesiton has already been asked, please point me to the right discussion. 🙂

Answered by Engineer in 101425022

Converting location information between lat/lon and human understandable form (called a placemark) is called Geocoding,

What you are specifically asking for is actually called "reverse geocoding"


In iOS, this is done using the CLGeocoder class (part of CoreLocation).


You can read more about it in the Location and Maps programming guide: Getting Placemark Information Using CLGeocoder

Accepted Answer

Converting location information between lat/lon and human understandable form (called a placemark) is called Geocoding,

What you are specifically asking for is actually called "reverse geocoding"


In iOS, this is done using the CLGeocoder class (part of CoreLocation).


You can read more about it in the Location and Maps programming guide: Getting Placemark Information Using CLGeocoder

Thank you! I wasn't sure what terminology Apple used for what I was describing.

I know this is kinda old but when I reverse geocode, my placemark hardly ever comes back with an actual name of the location. Typically only address, region, but nothing specific to what’s actually there. It has to be something pretty substatal like an airport for the name or area of interest to have the name. Any idea why or how to get the specific information like name?

Accessing name of location programatically?
 
 
Q