From 17b21e5f9bd395f2f150b3b176d823a44e686286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sat, 26 Sep 2020 11:31:04 +0200 Subject: [PATCH] culture: include sundial and orthodox clocks --- culture.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/culture.json b/culture.json index 226b774..0a0cd94 100644 --- a/culture.json +++ b/culture.json @@ -30,13 +30,16 @@ "node[tourism~\"^(artwork|gallery|museum|theme_park)$\"];", "way[tourism~\"^(artwork|gallery|museum|theme_park)$\"];", "relation[tourism~\"^(artwork|gallery|museum|theme_park)$\"];", + "nwr[amenity=clock][display~\"^(sundial|unorthodox)$\"];", + "nwr[amenity=clock][\"display:sundial\"];", + "nwr[amenity=clock][\"display:unorthodox\"];", "nwr[shop~\"^(art)$\"];", ")" ] }, "feature": { "pre": [ - "{% if tags.amenity in [ 'arts_centre', 'cinema', 'community_centre', 'fountain', 'studio', 'theatre' ] %}", + "{% if tags.amenity in [ 'arts_centre', 'cinema', 'community_centre', 'fountain', 'studio', 'theatre', 'clock' ] %}", "{% set key = 'amenity' %}", "{% set value = tags.amenity %}", "{% elseif tags.tourism %}", @@ -50,6 +53,9 @@ "description": [ "{% if key == 'shop' %}", " {{ keyTrans(key) }} ({{ tagTrans(key, value) }})", + "{% elseif tags.amenity == 'clock' %}", + " {% if tags.display == 'sundial' or attribute(tags, 'display:sundial') %}{{ tagTrans('amenity', 'clock display=sundial') }}{% endif %}", + " {% if tags.display == 'unorthodox' or attribute(tags, 'display:unorthodox') %}{{ tagTrans('amenity', 'clock display=unorthodox') }}{% endif %}", "{% else %}", " {{ tagTrans(key, value) }}", "{% endif %}", @@ -102,6 +108,7 @@ "const": { "amenity=arts_centre": "🎨", "amenity=cinema": "🎦", + "amenity=clock": "", "amenity=community_centre": "", "amenity=fountain": "⛲", "amenity=studio": "",