From 4741e36e5bb25ffd0bab9cf3043f6dce45b2451b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?=
 <plepe@noreply.openstreetbrowser.org>
Date: Sun, 18 Feb 2018 21:37:41 +0100
Subject: [PATCH] =?UTF-8?q?'railway-infrastructure.json'=20=C3=A4ndern?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 railway-infrastructure.json | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/railway-infrastructure.json b/railway-infrastructure.json
index 8a08094..44a2e13 100644
--- a/railway-infrastructure.json
+++ b/railway-infrastructure.json
@@ -14,11 +14,11 @@
             "{% set railway_type = null %}",
             "",
             "{% if tags.railway == 'disused' %}",
-            "  {% set railway_type = attribute(tags, 'disused:railway')|default(tags.disused) %}",
+            "  {% set railway_type = attribute(tags, 'disused:railway')|default(tags.disused)|default('rail') %}",
             "{% elseif tags.railway == 'abandoned' %}",
-            "  {% set railway_type = attribute(tags, 'abandoned:railway')|default(tags.abandoned) %}",
+            "  {% set railway_type = attribute(tags, 'abandoned:railway')|default(tags.abandoned)|default('rail') %}",
             "{% elseif tags.railway == 'proposed' %}",
-            "  {% set railway_type = attribute(tags, 'proposed:railway')|default(tags.proposed) %}",
+            "  {% set railway_type = attribute(tags, 'proposed:railway')|default(tags.proposed)|default('rail') %}",
             "{% elseif tags.railway in [ 'rail', 'narrow_gauge', 'subway', 'light_rail', 'tram' ] %}",
             "  {% set railway_type = tags.railway %}",
             "{% endif %}"