grote/osm2gtfs

Support multiple values for the same OSM tag

Closed this issue · 1 comments

Maybe this is already supported yet, but in order to be able to generate national GTFS feeds it is important to be able to specify multiple values for just one OSM tag. This should result in queries that append the different values separated by an or.

Example:

{
    "query": {
        "tags": {
            "network": "NI",
            "network": "NI-Estelí",
            "network": "NI-Managua"
        }
    }
}

I think it's not supported yet. This Overpass QL example shows the syntax to do it.

For example a config like:

{
    "query": {
        "tags": {
            "public_transport:version": "2",
            "operator": "Incofer",
            "operator": "Alpizar S.A."
        }
    }
}

should create this query:

relation
  (9.8346,-84.2418,10.0365,-83.8507)
  ["public_transport:version" = "2"]
  ["operator" ~ "Alpizar S.A.|Incofer"];
(._;);
out body;