Question

How to find the zip code corresponding to a latitude / longitude?

What tools are available to fetch this information?

Était-ce utile?

La solution

Google provides Geocoding/Reverse geocoding API which allow you to get address information from lat/lng.

i.e.) http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=false

In the result, you can find the postal code like this: enter image description here

More detail, please read the official document. https://developers.google.com/maps/documentation/geocoding/

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top