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

Nominatim api gives me road name given a lat, long value which I guess is the nearest one but it doesnot provide wayId. Is there any way to get that information. Or does any of osm v0.6 apis provide this feature.

asked 18 Jul '17, 12:29

shashank's gravatar image

shashank
1111
accept rate: 0%

edited 18 Jul '17, 12:30


Nominatim returns an "osm_type" and "osm_id" which point to the street, if the street is what your query found. Of course your query could also find a bus shelter or a building! You should be able to influence what types of objects are returned if you fiddle with the "zoom" parameter.

Just to be clear, do not use that in any kind of "production" app or website where you want to make a larger number of requests (like displaying the "road you are currently on" in a moving car or so). That would be a surefire way to have you and your app blocked from using the server. If you are envisaging that kind of use, download the Nominatim software and the OSM data and set up your own server.

permanent link

answered 18 Jul '17, 13:05

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

nominatim returns osm_type and osm_id for the point(lat,long) I am searching and not for the nearest road. So I cant use that osm id for getting road information later.

P.S: I have setup my local nominatim server with my osm dataset.

(18 Jul '17, 13:15) shashank

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:

×710
×689
×263

question asked: 18 Jul '17, 12:29

question was seen: 2,645 times

last updated: 18 Jul '17, 13:15

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