I am trying to get the nearest Node's OSM id from some position (given latitude and longitude) by doing a request to nominatim reverse endpoint, but I always get the nearest Way. The only reference I get to the nearest Node is its position (again latitude and longitude), but not its OSM id.

Is there a way to get the OSM id of the nearest Node to some position?

asked 21 May, 11:06

Axel%20Afonso's gravatar image

Axel Afonso
11112
accept rate: 0%


Nominatim's database only contains named nodes, or those relevant for addresses. So a bus stop can be relevant, but a park bench or empty building won't.

I think the openstreetmap.org website uses https://wiki.openstreetmap.org/wiki/Overpass_API#Around for the 'what's here?' feature. I mean the pointer with question mark button on the right-hand side of the map.

permanent link

answered 21 May, 14:16

mtmail's gravatar image

mtmail
2.9k848
accept rate: 28%

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:

×560
×75
×17

question asked: 21 May, 11:06

question was seen: 346 times

last updated: 21 May, 14:16

powered by OSQA