简体   繁体   中英

Getting zip-code + 4 from latitude/longitude

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

我最喜欢进行与地理编码相关的工作的地方是geonames.org

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM