| 164 | | relation[gtfs:route_id][!gtfs:feed][!network:guid][!operator:guid].PtRouteMaster, |
| 165 | | relation["public_transport:version"=2][!gtfs:shape_id][!gtfs:trip_id][!gtfs:trip_id:sample].PtRoute, |
| 166 | | relation[gtfs:route_id][!gtfs:feed][!network:guid][!operator:guid].PtRoute, |
| 167 | | relation[gtfs:shape_id][!gtfs:feed][!network:guid][!operator:guid].PtRoute, |
| 168 | | relation[gtfs:trip_id][!gtfs:feed][!network:guid][!operator:guid].PtRoute, |
| 169 | | relation[gtfs:trip_id:sample][!gtfs:feed][!network:guid][!operator:guid].PtRoute { |
| 170 | | throwWarning: tr("Public transport relation with `{0}` but none of `{1}*`, `{2}*` or `{3}*`.", "{0.tag}", "{1.tag}", "{2.tag}", "{3.tag}"); |
| | 164 | relation["public_transport:version"=2].PtRoute[!gtfs:shape_id][!gtfs:trip_id][!gtfs:trip_id:sample], |
| | 165 | relation[gtfs:route_id].PtRouteMaster[!gtfs:feed][!network:guid][!operator:guid], |
| | 166 | relation[gtfs:route_id ].PtRoute[!gtfs:feed][!network:guid][!operator:guid], |
| | 167 | relation[gtfs:shape_id ].PtRoute[!gtfs:feed][!network:guid][!operator:guid], |
| | 168 | relation[gtfs:trip_id ].PtRoute[!gtfs:feed][!network:guid][!operator:guid], |
| | 169 | relation[gtfs:trip_id:sample].PtRoute[!gtfs:feed][!network:guid][!operator:guid] { |
| | 170 | throwWarning: tr("Public transport relation with `{0}` but none of `{1}*`, `{2}*` or `{3}*`.", "{0.tag}", "{2.tag}", "{3.tag}", "{4.tag}"); |
| 202 | | *[public_transport =~ /^(platform|stop_position)$/][highway=bus_stop][bus!=yes][share_taxi!=yes][trolleybus!=yes][public_transport] { |
| 203 | | throwWarning: tr("`{0}` with `{1}` but none of `{2}*`, `{3}*` or `{4}*`.", "{5.tag}", "{1.tag}", "{2.tag}", "{3.tag}", "{4.tag}"); |
| | 204 | *[highway=bus_stop][public_transport =~ /^(platform|stop_position)$/][bus!=yes][share_taxi!=yes][trolleybus!=yes][public_transport] { |
| | 205 | throwWarning: tr("`{0}` with `{1}` but none of `{2}*`, `{3}*` or `{4}*`.", "{5.tag}", "{0.tag}", "{2.tag}", "{3.tag}", "{4.tag}"); |
| 300 | | node!.ErrorSyntaxIFOPT[ref:IFOPT !~ /^.+(:.+){4}$/][ref:IFOPT ][public_transport=stop_position], |
| 301 | | node!.ErrorSyntaxIFOPT[gtfs:stop_id !~ /^.+(:.+){4}$/][gtfs:stop_id][public_transport=platform], |
| 302 | | node!.ErrorSyntaxIFOPT[ref:IFOPT !~ /^.+(:.+){4}$/][ref:IFOPT ][public_transport=platform], |
| 303 | | node!.ErrorSyntaxIFOPT[gtfs:stop_id !~ /^.+(:.+){4}$/][gtfs:stop_id][public_transport=platform], |
| 304 | | way!.ErrorSyntaxIFOPT[ref:IFOPT !~ /^.+(:.+){3}$/][ref:IFOPT ][public_transport=platform], |
| 305 | | way!.ErrorSyntaxIFOPT[gtfs:stop_id !~ /^.+(:.+){3}$/][gtfs:stop_id][public_transport=platform], |
| 306 | | relation!.ErrorSyntaxIFOPT[ref:IFOPT !~ /^.+(:.+){3}$/][ref:IFOPT ][public_transport][public_transport =~ /^(platform|stop_area)$/], |
| 307 | | relation!.ErrorSyntaxIFOPT[gtfs:stop_id !~ /^.+(:.+){3}$/][gtfs:stop_id][public_transport][public_transport =~ /^(platform|stop_area)$/] { |
| 308 | | throwWarning: tr("Incomplete `{0}` on `{1}`.", "{2.tag}", "{3.tag}"); |
| | 302 | node[public_transport=stop_position][ref:IFOPT ]!.ErrorSyntaxIFOPT[ref:IFOPT !~ /^.+(:.+){4}$/], |
| | 303 | node[public_transport=platform ][gtfs:stop_id]!.ErrorSyntaxIFOPT[gtfs:stop_id !~ /^.+(:.+){4}$/], |
| | 304 | node[public_transport=platform ][ref:IFOPT ]!.ErrorSyntaxIFOPT[ref:IFOPT !~ /^.+(:.+){4}$/], |
| | 305 | node[public_transport=platform ][gtfs:stop_id]!.ErrorSyntaxIFOPT[gtfs:stop_id !~ /^.+(:.+){4}$/], |
| | 306 | way[public_transport=platform ][ref:IFOPT ]!.ErrorSyntaxIFOPT[ref:IFOPT !~ /^.+(:.+){3}$/], |
| | 307 | way[public_transport=platform ][gtfs:stop_id]!.ErrorSyntaxIFOPT[gtfs:stop_id !~ /^.+(:.+){3}$/], |
| | 308 | relation[public_transport ][ref:IFOPT ]!.ErrorSyntaxIFOPT[ref:IFOPT !~ /^.+(:.+){3}$/][public_transport =~ /^(platform|stop_area)$/], |
| | 309 | relation[public_transport ][gtfs:stop_id]!.ErrorSyntaxIFOPT[gtfs:stop_id !~ /^.+(:.+){3}$/][public_transport =~ /^(platform|stop_area)$/] { |
| | 310 | throwWarning: tr("Incomplete `{0}` on `{1}`.", "{1.tag}", "{0.tag}"); |
| 344 | | *[gtfs:route_id]!.MultipleID!.GtfsIdSyntax[gtfs:shape_id ][!(tag("gtfs:route_id") == get(regexp_match("^(.+)\\.[1-9][0-9]?\\.[HR]$", tag("gtfs:shape_id")), 1))], |
| 345 | | *[gtfs:route_id]!.MultipleID!.GtfsIdSyntax[gtfs:trip_id ][!(tag("gtfs:route_id") == get(regexp_match("^[1-9][0-9]{0,3}\\.T[023A]\\.(.+)\\.[1-9][0-9]?\\.[HR]$", tag("gtfs:trip_id")), 1))], |
| 346 | | *[gtfs:route_id]!.MultipleID!.GtfsIdSyntax[gtfs:trip_id:sample][!(tag("gtfs:route_id") == get(regexp_match("^[1-9][0-9]{0,3}\\.T[023A]\\.(.+)\\.[1-9][0-9]?\\.[HR]$", tag("gtfs:trip_id:sample")), 3))], |
| 347 | | *[gtfs:shape_id]!.MultipleID!.GtfsIdSyntax[gtfs:trip_id ][!(tag("gtfs:shape_id") == get(regexp_match("^[1-9][0-9]{0,3}\\.T[023A]\\.(.+)$", tag("gtfs:trip_id")), 1))], |
| 348 | | *[gtfs:shape_id]!.MultipleID!.GtfsIdSyntax[gtfs:trip_id:sample][!(tag("gtfs:shape_id") == get(regexp_match("^[1-9][0-9]{0,3}\\.T[023A]\\.(.+)$", tag("gtfs:trip_id:sample")), 1))] { |
| | 346 | *[gtfs:route_id][gtfs:shape_id ]!.MultipleID!.GtfsIdSyntax[!(tag("gtfs:route_id") == get(regexp_match("^(.+)\\.[1-9][0-9]?\\.[HR]$", tag("gtfs:shape_id")), 1))], |
| | 347 | *[gtfs:route_id][gtfs:trip_id ]!.MultipleID!.GtfsIdSyntax[!(tag("gtfs:route_id") == get(regexp_match("^[1-9][0-9]{0,3}\\.T[023A]\\.(.+)\\.[1-9][0-9]?\\.[HR]$", tag("gtfs:trip_id")), 1))], |
| | 348 | *[gtfs:route_id][gtfs:trip_id:sample]!.MultipleID!.GtfsIdSyntax[!(tag("gtfs:route_id") == get(regexp_match("^[1-9][0-9]{0,3}\\.T[023A]\\.(.+)\\.[1-9][0-9]?\\.[HR]$", tag("gtfs:trip_id:sample")), 3))], |
| | 349 | *[gtfs:shape_id][gtfs:trip_id ]!.MultipleID!.GtfsIdSyntax[!(tag("gtfs:shape_id") == get(regexp_match("^[1-9][0-9]{0,3}\\.T[023A]\\.(.+)$", tag("gtfs:trip_id")), 1))], |
| | 350 | *[gtfs:shape_id][gtfs:trip_id:sample]!.MultipleID!.GtfsIdSyntax[!(tag("gtfs:shape_id") == get(regexp_match("^[1-9][0-9]{0,3}\\.T[023A]\\.(.+)$", tag("gtfs:trip_id:sample")), 1))] { |
| 361 | | relation[gtfs:route_id ][parent_tag("gtfs:route_id")]!.MultipleID[count(split(";", parent_tag("gtfs:route_id"))) == 1][!(parent_tag("gtfs:route_id") == tag("gtfs:route_id"))].ChildMasterRoute_id, |
| 362 | | relation[gtfs:shape_id ][parent_tag("gtfs:route_id")]!.MultipleID[count(split(";", parent_tag("gtfs:route_id"))) == 1][!gtfs:route_id][!(parent_tag("gtfs:route_id") == get(regexp_match("(.+)\\.\\d+\\.[HR]$", tag("gtfs:shape_id")), 1))].ChildMasterRoute_id, |
| 363 | | relation[gtfs:trip_id ][parent_tag("gtfs:route_id")]!.MultipleID[count(split(";", parent_tag("gtfs:route_id"))) == 1][!gtfs:route_id][!gtfs:shape_id][!(parent_tag("gtfs:route_id") == get(regexp_match("^\\d+\\.T[023A]\\.(.+)\\.\\d+\\.[HR]$", tag("gtfs:trip_id")), 1))].ChildMasterRoute_id, |
| 364 | | relation[gtfs:trip_id:sample][parent_tag("gtfs:route_id")]!.MultipleID[count(split(";", parent_tag("gtfs:route_id"))) == 1][!gtfs:route_id][!gtfs:shape_id][!(parent_tag("gtfs:route_id") == get(regexp_match("^\\d+\\.T[023A]\\.(.+)\\.\\d+\\.[HR]$", tag("gtfs:trip_id:sample")), 1))].ChildMasterRoute_id { |
| | 363 | relation!.MultipleID[count(split(";", parent_tag("gtfs:route_id"))) == 1].ChildMasterRoute_id { |
| | 364 | set ChildNoMultiID; |
| | 365 | } |
| | 366 | relation[gtfs:route_id ][!(parent_tag("gtfs:route_id") == tag("gtfs:route_id"))], |
| | 367 | relation[gtfs:shape_id ][!gtfs:route_id][!(parent_tag("gtfs:route_id") == get(regexp_match("(.+)\\.\\d+\\.[HR]$", tag("gtfs:shape_id")), 1))], |
| | 368 | relation[gtfs:trip_id ][!gtfs:route_id][!gtfs:shape_id][!(parent_tag("gtfs:route_id") == get(regexp_match("^\\d+\\.T[023A]\\.(.+)\\.\\d+\\.[HR]$", tag("gtfs:trip_id")), 1))], |
| | 369 | relation[gtfs:trip_id:sample][!gtfs:route_id][!gtfs:shape_id][!(parent_tag("gtfs:route_id") == get(regexp_match("^\\d+\\.T[023A]\\.(.+)\\.\\d+\\.[HR]$", tag("gtfs:trip_id:sample")), 1))]{ |