How to force language in which reverse geocoding data on iOS is received?

前端 未结 4 834
栀梦
栀梦 2021-01-14 06:04

When i call

geocoder reverseGeocodeLocation:currentLoc completionHandler:

i get all the data (city, county, ...) in a language according t

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-14 06:19

    You can not force the language of the geo data retrieved from CLGeocoder or MKReverseGeocoder. It will always be the system language of the device. If you want to get the data in English you need to built your own geocoder which is relatively easy to implement with the Google Maps API.

    Here is a spreadsheet of the supported languages in Google Maps API: https://spreadsheets.google.com/pub?key=p9pdwsai2hDMsLkXsoM05KQ&gid=1

提交回复
热议问题