Find out which type of area you are in from MKMapView

半世苍凉 提交于 2019-11-30 21:48:20

A CLPlacemark has a couple of properties: inlandWater and ocean which tell you when the placemark is in water. I think you can get a placemark from the geocoder.

It also has areasOfInterest which will give you parks and landmarks.

there is no foolproof way BUT CLGeocoder can reverse geocode a coordinate to an address and that would give you stuff like:

0/0 = ...., ocean 51/10 = ..., germany -90/10 = ..... , united states

and so on

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!