Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get city name by parsing in iphone sdk

From this url:

http://ws.geonames.org/findNearbyPostalCodes?lat=19.0176560&lng=72.8561780

I want is city name that is mumbai can somebody help me?

like image 549
mrugen munshi Avatar asked Dec 12 '25 00:12

mrugen munshi


1 Answers

Once you have parsed out the latitude and longitude, you can use the MKReverseGeocoder to translate that location to meta data about that location. In that meta data, you will find the city name that you are after.

Update

Have a look at the Apple CurrentAddress sample app, this has an example of how you use the MKReverseGeocoder.

like image 153
RedBlueThing Avatar answered Dec 13 '25 16:12

RedBlueThing



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!