Now that we have the user's location stored in our iOS device, we assume that the user does not change his location often, or does not often move out of city. We use the GeoNames
API to convert the user's position into a meaningful city name or area name, as returned by the GeoNames
API. We could also use the reverse Geocoding method provided by the new CLGeocoder
class in iOS 5. Time to revisit the Geocoding example we did in Chapter 3, where we covered forward geocoding. Now, we will look at reverse geocoding and converting latitude/longitude values to meaningful address.
GeoNames
is a worldwide geographical database, with a creative common license, containing more than 10 million geographical names that could include city, street, administrative areas, mountains, lakes, canals, and so on . A full list is available at: http://www.geonames.org/export/codes.html. The database is available for download, and there...