From 6d373b006668ae5413bd0c565dfda1c1a2015f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Thu, 22 Mar 2018 13:48:59 +0100 Subject: [PATCH] Health: handle tag keys (drawback: duplicate entries in info) --- health.json | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/health.json b/health.json index d107cec..92c8c91 100644 --- a/health.json +++ b/health.json @@ -59,31 +59,32 @@ "{{ tagTransList('healthcare:speciality', attribute(tags, 'healthcare:speciality')) }}", "{% endif %}" ], - "markerSign": "{{ const[value]|raw }}" + "markerSign": "{{ const[concat(key, '=', value)]|raw }}" }, "info": [ "", "{% for value, sign in const %}", " ", " ", - " ", + " ", " ", "{% endfor %}", "
{{ markerCircle({})|raw }}
{{ sign|raw }}
{{ tagTrans('amenity', value) }}{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}
" ], "const": { - "baby_hatch": "🚼", - "blood_bank": "", - "blood_donation": "", - "clinic": "🏥", - "defibrillator": "", - "dentist": "", - "doctor": "", - "doctors": "", - "hospital": "🏥", - "nursing_home": "", - "pharmacy": "", - "social_facility": "", - "veterinary": "" + "amenity=baby_hatch": "🚼", + "healthcare=blood_bank": "", + "healthcare=blood_donation": "", + "healthcare=clinic": "🏥", + "emergency=defibrillator": "", + "healthcare=dentist": "", + "healthcare=doctor": "", + "amenity=doctors": "", + "amenity=hospital": "🏥", + "healthcare=hospital": "🏥", + "amenity=nursing_home": "", + "amenity=pharmacy": "", + "amenity=social_facility": "", + "amenity=veterinary": "" } -} +} \ No newline at end of file