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: |
{% for k, v in tags %}
- {% if k|matches('^red_turn:.*:bicycle$') and v == 'yes' %}- {{ k }}={{ v }}
{% endif %}
+ {% if k|matches('^red_turn:.*:bicycle$') and v in ['yes', 'stop'] %}- {{ k }}={{ v }}
{% endif %}
{% endfor %}
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: |
- - restriction:bicycle=give_way
+ - restriction:bicycle={{ restriction }}
markerSymbol: |
{{ markerPointer({})|raw }}