| 182 | | *[public_transport=platform][highway=bus_stop][bus!=yes][share_taxi!=yes][trolleybus!=yes] { |
| 183 | | throwWarning: tr("`{0}` with `{1}` but none of `{2}*`, `{3}*` or `{4}*`.", "{0.tag}", "{1.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}"); |
| | 283 | /* ref:IFOPT, gtfs:stop_id, local_ref */ |
| | 284 | *[public_transport][public_transport =~ /^(platform|stop_position)$/][!(tag("local_ref") == get(regexp_match("^(.*:){4}([1-9][0-9]?)", tag("ref:IFOPT")), 2))][local_ref][ref:IFOPT] { |
| | 285 | throwWarning: tr("`{0}` conflicts with `{1}`.", "{3.tag}", "{4.tag}"); |
| | 286 | group: tr("Public Transport GTFS: conflicting tags"); |
| | 287 | assertMatch: "relation public_transport=platform local_ref=14 ref:IFOPT=de:08315:6504:0:1"; |
| | 288 | assertNoMatch: "relation public_transport=platform local_ref=14 ref:IFOPT=de:08315:6504:0:14"; |
| | 289 | assertNoMatch: "relation public_transport=platform local_ref=14 ref:IFOPT=de:08315:6504:14"; |
| | 290 | } |
| | 291 | |
| 299 | | /* ref:IFOPT, gtfs:stop_id, local_ref */ |
| 300 | | *[public_transport][public_transport =~ /^(platform|stop_position)$/][!(tag("local_ref") == get(regexp_match("^(.*:){4}([1-9][0-9]?)", tag("ref:IFOPT")), 2))][local_ref][ref:IFOPT] { |
| 301 | | throwWarning: tr("`{0}` conflicts with `{1}`.", "{3.tag}", "{4.tag}"); |
| 302 | | group: tr("Public Transport GTFS: conflicting tags"); |
| 303 | | assertMatch: "relation public_transport=platform local_ref=14 ref:IFOPT=de:08315:6504:0:1"; |
| 304 | | assertNoMatch: "relation public_transport=platform local_ref=14 ref:IFOPT=de:08315:6504:0:14"; |
| 305 | | assertNoMatch: "relation public_transport=platform local_ref=14 ref:IFOPT=de:08315:6504:14"; |
| 306 | | } |
| 307 | | |