From d39b7e02dd5ef7925fdea4bfa37f3a62be090626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Mon, 10 Jul 2023 18:55:54 +0200 Subject: [PATCH] cycle_turn_on_red: support 'stop' restriction --- cycle_turn_on_red.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/cycle_turn_on_red.yaml b/cycle_turn_on_red.yaml index 1a0d11b..cce1c05 100644 --- a/cycle_turn_on_red.yaml +++ b/cycle_turn_on_red.yaml @@ -1,8 +1,9 @@ query: 12: | ( - node[~"^red_turn:.*:bicycle$"~"^yes$"]; + node[~"^red_turn:.*:bicycle$"~"^(yes|stop)$"]; relation["restriction:bicycle"="give_way"]; + relation["restriction:bicycle"="stop"]; ) members: true feature: @@ -11,7 +12,7 @@ feature: body: | exclude: | @@ -21,13 +22,17 @@ memberFeature: {{ tagTrans('highway', tags.highway) }} exclude: | {% set isVia = false %} + {% set restriction = null %} {% for master in masters %} - {% if attribute(master.tags, 'restriction:bicycle') == 'give_way' and master.role == 'via' %}{% set isVia = true %}{% endif %} + {% if attribute(master.tags, 'restriction:bicycle') in ['give_way', 'stop'] and master.role == 'via' %} + {% set isVia = true %} + {% set restriction = attribute(master.tags, 'restriction:bicycle') %} + {% endif %} {% endfor %} {{ not isVia }} body: | markerSymbol: | {{ markerPointer({})|raw }}