From a02a27a782af2005e70259d977de277797dc7fc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sun, 17 Feb 2019 18:48:27 +0100 Subject: [PATCH] buildings-start_date: parse alternative, deprecated tags --- buildings-start_date.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/buildings-start_date.json b/buildings-start_date.json index 2b0759d1..fad9b959 100644 --- a/buildings-start_date.json +++ b/buildings-start_date.json @@ -18,6 +18,12 @@ "pre": [ "{% set start_date = tags.start_date %}", "{% if attribute(tags, 'building:start_date') %}{% set start_date = attribute(tags, 'building:start_date') %}{% endif %}", + "{# Deprecated tags #}", + "{% if not start_date and attribute(tags, 'building:age') %}{% set start_date = attribute(tags, 'building:age') %}{% endif %}", + "{% if not start_date and attribute(tags, 'building:year_built') %}{% set start_date = attribute(tags, 'building:year_built') %}{% endif %}", + "{% if not start_date and attribute(tags, 'building:buildyear') %}{% set start_date = attribute(tags, 'building:buildyear') %}{% endif %}", + "{% if not start_date and attribute(tags, 'year_built') %}{% set start_date = attribute(tags, 'year_built') %}{% endif %}", + "{% if not start_date and attribute(tags, 'building:year') %}{% set start_date = attribute(tags, 'building:year') %}{% endif %}", "", "{% if start_date %}", " {% set value = start_date|osmParseDate %}",