Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the address of a latitude and longitude in an iphone application

I am getting latitude and longitude using CLLocation. I want to know how I can get the address by using this latitude and longitude. Please help me.

like image 997
S.P. Avatar asked Feb 28 '23 19:02

S.P.


1 Answers

You can use MKReverseGeocoder class for that purpose, which uses google reverse geocoding facilities.

Update: MKReverseGeocoder class is deprecated in iOS 5, you should use CLGeocoder class from Core Location framework instead. It provides functions for both forward and reverse geocoding - check class reference for more details

like image 90
Vladimir Avatar answered Apr 09 '23 12:04

Vladimir