friends,
as we have geocoder getfromlocation(locationname,maximumResults) function of google api in android.
i dont see such function in iphone sdk to obtain latitude and longitude values from city name.
any one guide me how to achieve this functionality?
any help would be appreciated.
iOS <5
There is no geocoding API. You need to ask Google:
http://maps.googleapis.com/maps/api/geocode/json?address=YOURADDRESS&sensor=true and parse the result using JSONKit.
Something like this:
iOS >= 5
iOS 5 has a geocoder API:
The CLPlacemark object has the following properties: