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 ♦
31.9k16236548

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 ♦

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.

permanent link

answered 25 Aug '16, 19:53

SimonPoole's gravatar image

SimonPoole ♦
37.6k13282597
accept rate: 19%

edited 25 Aug '16, 19:54

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 .

permanent link

answered 25 Aug '16, 19:52

maxerickson's gravatar image

maxerickson
10.5k1071147
accept rate: 31%

edited 25 Aug '16, 19:53

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×110
×108
×100
×54
×16

question asked: 25 Aug '16, 18:22

question was seen: 1,446 times

last updated: 25 Aug '16, 20:03

powered by OSQA