Getting zip-code + 4 from latitude/longitude

邮差的信 提交于 2019-12-11 06:35:55

问题


Does anyone know the best way to use the iPhone location services (lat/long) to determine the zip code+4 of the user? Does MKReverseGeocoder have the ability to pull back zip+4?

Thanks!

-tony


回答1:


My favorite place to go for anything having to do with geocoding is geonames.org.




回答2:


You may be able to use a free Reverse Geocoding service to do this for you.

Google has such a service: http://code.google.com/apis/maps/documentation/services.html#ReverseGeocoding

Alternately, this Google Groups post has a listing of other Reverse Geocoding services: http://groups.google.com/group/Google-Maps-API/web/resources-non-google-geocoders?pli=1




回答3:


Apple's documentation says that the MKPlacemark that MKReverseGeocoder only returns a five-digit zip code. You may have to use an outside reverse geocoder as described in the other answers to get the extra four digits.



来源:https://stackoverflow.com/questions/1343683/getting-zip-code-4-from-latitude-longitude

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