I'm new to osm queries and I explore it using overpass turbo so I'm trying that gets a specific way with a predefine id the code looks like this if anyone would like to test

[bbox:40.73112,-73.89061,40.73391,-73.88807];
// gather results
(
  way(5703091);
);
// print results
out body;
>;
out skel qt;

when I did explore the XML file in the data view I saw that this way contain all of these nodes that make the way < way id="5703091"> < nd ref="42839143"/> < nd ref="8219742075"/> < nd ref="42807002"/> < nd ref="42839146"/> < nd ref="42839155"/> < nd ref="42839161"/> < nd ref="42839168"/> < nd ref="2875111804"/> < nd ref="42839172"/>

so is there a way to show these nodes in the map view without assign each one individually with the query i try to use node(5703091); but office didn't work since it is a way

asked 20 Dec '20, 16:53

rabeeqasem's gravatar image

rabeeqasem
2617
accept rate: 0%


Hi Recurse: https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#Recurse_.28n.2C_w.2C_r.2C_bn.2C_bw.2C_br.29

way(5703091);
node(w);
out center;

Will display the nodes.

What's strange is this routine should display all the nodes & way, but only loads the start & end ones:

way(5703091)->.Way;
node(w.Way);
out center;
.Way out geom;
permanent link

answered 20 Dec '20, 23:01

DaveF's gravatar image

DaveF
1.8k617597
accept rate: 6%

thank you so much

(20 Dec '20, 23:07) rabeeqasem
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:

×413
×317
×163

question asked: 20 Dec '20, 16:53

question was seen: 213 times

last updated: 20 Dec '20, 23:07

powered by OSQA