From 1bf125b7a2313e9020943674421bc94a1fbbedf9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at>
Date: Thu, 13 May 2021 22:33:16 +0200
Subject: [PATCH] cycle_infrastructure: when only one of cycleway:left/right is
 set and no oneway, assume shared_lane for the other

---
 cycle_infrastructure.json | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cycle_infrastructure.json b/cycle_infrastructure.json
index d12d4d9..d7b221f 100644
--- a/cycle_infrastructure.json
+++ b/cycle_infrastructure.json
@@ -49,6 +49,8 @@
             "  {% elseif attribute(tags, 'cycleway:left:oneway') == '-1' %}",
             "    {% set left_direction = 'backward' %}",
             "  {% endif %}",
+            "{% elseif attribute(tags, 'cycleway:right') and (not oneway or oneway == 'no') %}",
+            "  {% set left = 'shared_lane' %}",
             "{% endif %}",
             "{% if attribute(tags, 'cycleway:right') %}",
             "  {% set right = attribute(tags, 'cycleway:right') %}",
@@ -66,6 +68,8 @@
             "  {% elseif attribute(tags, 'cycleway:right:oneway') == '-1' %}",
             "    {% set right_direction = 'backward' %}",
             "  {% endif %}",
+            "{% elseif attribute(tags, 'cycleway:left') and (not oneway or oneway == 'no') %}",
+            "  {% set right = 'shared_lane' %}",
             "{% endif %}"
         ],
         "body": [