NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the 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
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 '19, 14:16

mtmail's gravatar image

mtmail
4.8k1574
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

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:

×689
×92
×20

question asked: 21 May '19, 11:06

question was seen: 3,626 times

last updated: 21 May '19, 14:16

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