tyrasd / overpass-turbo

A web based data mining tool for OpenStreetMap using the Overpass API.
https://overpass-turbo.eu
Other
891 stars 129 forks source link

Output route relation / superroute tree (as gpx), with role filter #660

Open pelderson opened 9 months ago

pelderson commented 9 months ago

Maybe this is a dumb question, but is it possible to export a route relation, but only include relation members without a role or with the role 'main'? Route relation members (ways or child routes) may have roles main (or no role, which defaults to main), approach, excursion, alternative, excursion. This is approved and established tagging. In most cases, gpx export only wants the main route without any extras. Maybe this can be achieved in the overpass query, in which case it's just my knowledge level that needs updating. If it can't be done in the query, I would like to know if it is an option which could be built into the software.

mmd-osm commented 9 months ago

https://github.com/drolbr/Overpass-API/issues/97 discusses this topic. Does that help you?