NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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 ♦

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 ♦
44.7k13326701
accept rate: 18%

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
12.7k1083176
accept rate: 32%

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:

×133
×113
×104
×74
×23

question asked: 25 Aug '16, 18:22

question was seen: 5,358 times

last updated: 25 Aug '16, 20:03

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum