objective-ciosmapkitmkreversegeocoder

Finding region programmatically


I need to find in what region i am in. For example: New York etc. How could i do this programmatically ?

It is possible to find the UUID, or the iOS version of an individual, but how can we find in what region the person is using the application. I have seen some applications having this, and I need to know how to do it ?


Solution

  • What you want to do is called reverse geocoding. You want to use MKReverseGeocoder:

    The MKReverseGeocoder class provides services for converting a map coordinate (specified as a latitude/longitude pair) into information about that coordinate, such as the country, city, or street.