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

as the title shows, I want to get the OSM nodes data, which are on roads.
For roads, we can define it as the Way feature as highway tag. (I found this tip from a previous post).
How to do that?

EDIT; find the solution by myself:
way[highway](50.7460,7.170,50.7461,7.171);node(w);

the above query will output the all the nodes on the ways tagged as highway and within the bounding box. The key part is node(w). For more information, you can go to this osm wiki:
https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL

asked 19 Nov '18, 10:16

Chris%20Bao's gravatar image

Chris Bao
11334
accept rate: 0%

edited 20 Nov '18, 02:55

1

If you figured it out yourself then write it as an answer :)

(20 Nov '18, 07:01) scai ♦

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:

×483
×86

question asked: 19 Nov '18, 10:16

question was seen: 3,949 times

last updated: 20 Nov '18, 07:01

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