如何使用CLGeocoder对大陆反向地理编码? [英] How to reverse geocode the continent using CLGeocoder?

查看:252
本文介绍了如何使用CLGeocoder对大陆反向地理编码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

令人惊讶的是,我在30分钟的搜索中找不到任何有意义的信息在所有正确的地方。可疑,我想我做错了。
我想补充一点,解决方案应该不需要第三方代码或web服务。

Surprisingly, I wasn't able to find ANY meaningfull information in 30 minutes of search in all the right places..it's suspicious, I think I am doing something wrong. I would add, that the solution should be without requiring third party code or webservices..

推荐答案

在CLPlacemark类中解决此问题的类别。
当前使用-ISOCountryCode属性将其映射到其对应的大陆。

I actually wrote a category to address this caveat in the CLPlacemark class. It currently uses the -ISOCountryCode property to map it to its correspondent continent.

https://github.com/Hecktorzr/Transcontinental

这篇关于如何使用CLGeocoder对大陆反向地理编码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆