Pergunta

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

What tools are available to fetch this information?

Foi útil?

Solução

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/

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top