2

So, I am using the location manager to get the user location data in Swift 2.0 Xcode 7.

The app supports localization for few languages. I am using the location data to get the user city and country which is then sent to a server to display some info on the Map.

However, if the system language is set to anything other than english, location data is returned in that language, as a result the server is not able to recognise those values.

So, how do I get the placemark location data in english even if the system language is different ?

aradhya
  • 355
  • 8
  • 21

1 Answers1

0

You cannot achieve this using CLGeocoder. Unfortunately, native forward/reverse geocoding on iOS has lots of limitations including inability to select output language. You can also check my question here to see some other problems that can arise!

Please have a look at the accepted answer to that question. After reading it I tried Google Maps Geocoding APIs and I can confirm these APIs work great! You can structure advanced queries and you can easily specify the desired output language.

Community
  • 1
  • 1
Andriy Gordiychuk
  • 6,163
  • 1
  • 24
  • 59