MKReverseGeocoder;我可以只用英文获取位置信息吗?

发布于 2024-10-10 08:31:45 字数 231 浏览 0 评论 0原文

你好呀 我在我的应用程序中使用核心定位,一切都运行良好。除了我想让 mkreversecoder 给我英文的位置。

我的应用程序的某些部分取决于位置,它根据位置从服务器获取一些数据。这里的问题是 mkreversecoder 在检索国家/地区时遵循手机的语言

,因此澳大利亚变为 오스트 레일 리아

无论如何,我可以强制 mkreversegeocoder 仅以英语提供位置吗?

谢谢

Hi there
I am using corelocation in my app and everything works fine and well. Except that i would like to have mkreversecoder give me the location in english.

Some parts of my app are dependent on the location, where by, it grabs some data from the server based on the location. The problem here is mkreversecoder follows the phone's language when retrieving the country

So australia becomes 오스트 레일 리아

Is there anyway that i can force mkreversegeocoder to give me location only in english?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

只有影子陪我不离不弃 2024-10-17 08:31:45

现在我选择了这种方法

  1. 从 standardDefaults 获取当前语言
  2. 将语言设置为英语 ( [[NSUserDefaults standardUserDefaults] setObject: [NSArray arrayWithObjects:@"en", nil] forKey:@"AppleLanguages"];)
  3. 完成反向地理编码后,使用步骤 1 中获取的值重置语言

还有其他明智的方法吗?

For now i have chose this method

  1. Grab the current language from standardDefaults
  2. Set the language to English ( [[NSUserDefaults standardUserDefaults] setObject: [NSArray arrayWithObjects:@"en", nil] forKey:@"AppleLanguages"];)
  3. Once the reverse geo coding is done, reset the language with the value grabbed in step 1

Is there any other sane way?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文