This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

US zipcode to lat/long

0

Hi,

I wanted to get the lat/long of user entered zip code. Basically i wanted to show some results based on the user entered zip code. Is there any way to get lat/long with zip code?

Kiran

asked 25 Aug '16, 18:22

KIRAN's gravatar image

KIRAN
11112
accept rate: 0%

edited 25 Aug '16, 20:03

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

is this question in any way about leaflet? You have added it as tag. What is its relation with leaflet?

(25 Aug '16, 20:03) aseerel4c26 ♦

2 Answers:

2

See https://help.openstreetmap.org/questions/46371/need-help-showing-zip-codes-on-map-and-their-boundaries

Note this site has a search function and before posing a new question you should use it first.

answered 25 Aug '16, 19:53

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

edited 25 Aug '16, 19:54

0

You can try asking nominatim, like so:

http://nominatim.openstreetmap.org/search.php?q=14556

But there is no assurance that the answer will be a zip code, and zip codes don't really have a center as such.

You will probably get more useful results from something using a non OSM source like https://www.census.gov/geo/reference/zctas.html .

answered 25 Aug '16, 19:52

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

edited 25 Aug '16, 19:53