Why not ask your question on the new OpenStreetMap Community Forum?

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 '19, 11:06

Axel%20Afonso's gravatar image

Axel Afonso
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 '19, 14:16

mtmail's gravatar image

accept rate: 27%

Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 21 May '19, 11:06

question was seen: 3,436 times

last updated: 21 May '19, 14:16

powered by OSQA