MKReverseGeocoder; Can I find a place in English only?

Hey. I use corelocation in my application and everything works fine and well. In addition, I would like mkreversecoder to give me a location in English.

Some parts of my application are location dependent, where it captures some data from the server based on location. The problem is here: mkreversecoder follows the language of the phone when receiving the country

So Australia is becoming 였슀트 레일 리아

Is there anyway that I can get mkreversegeocoder to give me a location in English only?

thank

+3
source share
1 answer

Now i chose this method

  • Capture the current language from standard Defaults
  • Set the language to English ( [[NSUserDefaults standardUserDefaults] setObject: [NSArray arrayWithObjects:@"en", nil] forKey:@"AppleLanguages"];)
  • Once reverse geocoding is complete, reset the language with the value captured in step 1

Is there any other reasonable way?

+2
source

Source: https://habr.com/ru/post/1783328/


All Articles