drolbr / Overpass-API

A database engine to query the OpenStreetMap data.
http://overpass-api.de
GNU Affero General Public License v3.0
690 stars 90 forks source link

Relation with only Relation is not returned #715

Closed Wunder0 closed 3 months ago

Wunder0 commented 5 months ago

Hello,

When accessing roads with 'relation["route"="road"]' usually all relations with "route" = "road" are returned. But it seams that relation that only consist out of relations, e.g. https://www.openstreetmap.org/relation/62964 are not returned, even when this relation also has the tag "route" = "road".

When accessing the relation element by id, everything is working fine: 'rel(62964); rel(r);

;' I get all relation of the relation element 62964.

Cheers, Andreas

drolbr commented 5 months ago

Can you please send an exact request that failed? The obvious one contains the relation in the result as expected.

Wunder0 commented 5 months ago

Hello, when I used this command (zoomed in a lot to reduce the bounding box, while street is still visble) I dont get any results: [out:json]; nwr["route"="road"](48.749553114953414,8.581365638135525,48.74981299228642,8.581563007136117); out;

Also when using the {{bbox}} command, directly on overpass-turbo.eu (at coordinates: 48.73610429, 8.57770643) The street B294 is not found: image

mmd-osm commented 5 months ago

That’s expected behavior for relations containing relations only. Since they don’t have a geometry, the bbox won’t work in that case. There are some posts on help.osm.org explaining alternative options for these superroutes/super relations. Maybe you can check there.

Wunder0 commented 5 months ago

Hello @mmd-osm, thanks for looking into it and your feedback! I appreciate it. Cheers!

mmd-osm commented 5 months ago

I have found my old post on help.osm.org again: https://help.openstreetmap.org/questions/50752/how-do-i-get-route_master-and-its-children-via-overpass-ql-in-overpass-turbo

By the way, this was also a topic in #293

drolbr commented 3 months ago

Closed as the reason has been explained.