You are not logged in.

#1 2021-09-19 20:35:55

joschi81
Member
From: Hamburg
Registered: 2011-10-08
Posts: 8
Website

Overpass: Getting all ways and nodes of a relation

Hi there,

for technical reasons I need to extend such a query

[out:json][timeout:25];(relation(222103););out;

so that ot returns not only the relation itself, but also each node and way of a relation separately, as well as all member nodes of the relations ways.

This one returns all relation ways separately:

[out:json][timeout:25];(relation(222103);way(r);node(w););out; 

This one returns all relation nodes separately:

[out:json][timeout:25];(relation(222103);node(r);node(w););out; 

Ho can I combine both?

[out:json][timeout:25];(relation(222103);node(r);way(r);node(w););out; 

does not work, unfortunately. Or am I missing something?

Thank you!

Kind regards
joschi81

Offline

#2 2021-09-20 07:19:59

mmd
Member
Registered: 2010-11-06
Posts: 1,943

Re: Overpass: Getting all ways and nodes of a relation

Maybe try:

[out:json];(relation(222103);>;);out;

Offline

#3 2021-09-20 12:53:49

joschi81
Member
From: Hamburg
Registered: 2011-10-08
Posts: 8
Website

Re: Overpass: Getting all ways and nodes of a relation

Thank you, that worked!

Offline

Board footer

Powered by FluxBB