| 4 | | > {{{ |
| 5 | | > #!rule |
| 6 | | > way[highway=~/^(footway|path|bridleway|cycleway|service)$/] > node[barrier]:connection { |
| 7 | | > set .barrierSmallRoadConnection; |
| 8 | | > } |
| 9 | | > /* 20742; warnings for major roads set by other rule, also issue 20742 */ |
| 10 | | > way[highway=~/^(unclassified|residential)$/] > node[barrier][barrier!=bollard][!access][!access:conditional][!vehicle][!vehicle:conditional][!motor_vehicle][!motor_vehicle:conditional].barrierSmallRoadConnection { |
| 11 | | > throwWarning: tr("Suspicious {0} on a connection of a small highway with a larger highway", "{0.tag}"); |
| 12 | | > set .hasWarningForBarrierOnWay; |
| 13 | | > } |
| 14 | | > way[highway=~/^(unclassified|residential)$/] > node[barrier].barrierSmallRoadConnection!.hasWarningForBarrierOnWay { |
| 15 | | > throwOther: tr("Suspicious {0} on a connection of a small highway with a larger highway", "{0.tag}"); |
| 16 | | > } |
| 17 | | > }}} |
| | 4 | > [EDIT FAMLAM: I cut the code out to make sure the correct one is copied] |