I am working on an application in which I need to print the location after clicking on Google Map. I have retrieve the coordinates where the user tap on the map, Now I need to retrieve the name of the country. Is there a way to do that ?
Asked
Active
Viewed 2,587 times
1 Answers
0
Please take a look at following topics:
1) Get location name from Latitude & Longitude in iOS
2) How to retrieve user's current city name?
Quite a lot of code so I don't see any sense to copy-paste the answers. Hope, this will be helpful
UPD.: Here are the links to Google API reference:
A common tutorial: Hello Map
iOS SDK docs: Google Maps SDK for iOS
-
is there a way to do it without using geocoding ? or any tutorial about geocoding ? – mowi Sep 03 '14 at 06:54
-
I have updated my answer with links to google maps API. It's quite easy to use. Or You just need to choose necessary API call and parse it properly. Possible API call is http://maps.googleapis.com/maps/api/geocode/json?latlng=20.714224,-74.961452 – Alex Peda Sep 03 '14 at 07:45