From 4f256f5964d2b238053a42c0cadbf9e195efa4e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Tue, 2 May 2023 21:27:57 +0200 Subject: [PATCH] cycle_turn_on_red: for relations 'restriction:bicycle=give_way', show via node --- cycle_turn_on_red.yaml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/cycle_turn_on_red.yaml b/cycle_turn_on_red.yaml index 2ccc557..1a0d11b 100644 --- a/cycle_turn_on_red.yaml +++ b/cycle_turn_on_red.yaml @@ -1,5 +1,10 @@ query: - 12: node[~"^red_turn:.*:bicycle$"~"^yes$"]; + 12: | + ( + node[~"^red_turn:.*:bicycle$"~"^yes$"]; + relation["restriction:bicycle"="give_way"]; + ) +members: true feature: title: | {{ tagTrans('highway', tags.highway) }} @@ -8,3 +13,23 @@ feature: {% for k, v in tags %} {% if k|matches('^red_turn:.*:bicycle$') and v == 'yes' %}
  • {{ k }}={{ v }}
  • {% endif %} {% endfor %} + + exclude: | + {{ type == 'relation' }} +memberFeature: + title: | + {{ tagTrans('highway', tags.highway) }} + exclude: | + {% set isVia = false %} + {% for master in masters %} + {% if attribute(master.tags, 'restriction:bicycle') == 'give_way' and master.role == 'via' %}{% set isVia = true %}{% endif %} + {% endfor %} + {{ not isVia }} + body: | + + markerSymbol: | + {{ markerPointer({})|raw }} + listMarkerSymbol: | + {{ markerCircle({})|raw }}