| 460 | | relation!.MultipleID[count(split(";", parent_tag("gtfs:route_id"))) == 1].ChildMasterRoute_id { |
| 461 | | set ChildNoMultiID; |
| 462 | | } |
| 463 | | relation[gtfs:route_id ][!(parent_tag("gtfs:route_id") == tag("gtfs:route_id"))], |
| 464 | | relation[gtfs:shape_id ][!gtfs:route_id][!(parent_tag("gtfs:route_id") == get(regexp_match("(.+)\\.\\d+\\.[HR]$", tag("gtfs:shape_id")), 1))], |
| 465 | | 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))], |
| 466 | | 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))]{ |
| 467 | | throwWarning: tr("`{0}` conflicts with `gtfs:route_id=*` of the `route_master` relation.", "{0.tag}"); |
| | 460 | relation!.MultipleID[count(split(";", parent_tag("gtfs:route_id"))) == 1] { |
| | 461 | set NoMultiId; |
| | 462 | } |
| | 463 | relation[gtfs:route_id ][!(parent_tag("gtfs:route_id") == tag("gtfs:route_id"))].NoMultiId, |
| | 464 | relation[gtfs:shape_id ][!gtfs:route_id][!(parent_tag("gtfs:route_id") == get(regexp_match("(.+)\\.\\d+\\.[HR]$", tag("gtfs:shape_id")), 1))].NoMultiId, |
| | 465 | 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))].NoMultiId, |
| | 466 | 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))].NoMultiId { |
| | 467 | throwWarning: tr("`{0}` conflicts with `{1}` of the `route_master` relation.", "{0.tag}", "gtfs:route_id=*"); |