I want to use overpass to get all relations in a specific relation. I know there will be at least three levels: relation A holds relation B which holds relation C. But when I use the relation recurse in overpass twice, I do not get relation B, I only get the relations that do not hold any relations in them. relation ["name"="Twente"] ["network"="public_transport"]; rel(r); rel(r); out; Without recurse, the relation that gets returned is 360309. With one recurse I get all the relations in it, e.g. 5617486 which is a relation that holds two relations. With two recurses, I get the relations that are held by 5617486, but I do not get 5617486 anymore.
asked
Maarten Deen |

Maybe you should also take a look at recurse down relations (or for short: Another option would the
answered
mmd |