From ad1522be6076166867aa781b6181b29ad3668796 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at>
Date: Sat, 5 Aug 2017 19:53:24 +0200
Subject: [PATCH] Category 'emergency'

---
 emergency.json | 24 ++++++++++++++++++++++++
 index.json     |  3 +++
 2 files changed, 27 insertions(+)

diff --git a/emergency.json b/emergency.json
index 31e82be..d2d07de 100644
--- a/emergency.json
+++ b/emergency.json
@@ -1,4 +1,5 @@
 {
+    "type": "overpass",
     "name": {
         "ast": "Servicios d'emerxencia",
         "ca": "Serveis d'emergència",
@@ -15,5 +16,28 @@
         "ro": "Servicii urgenta",
         "ru": "Экстренные службы",
         "uk": "Швидка допомога"
+    },
+    "query": {
+        "11": "(node[amenity~\"^(fire_station|hospital)$\"];\nway[amenity~\"^(fire_station|hospital)$\"];\nrelation[amenity~\"^(fire_station|hospital)$\"])",
+        "13": "(node[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"];\nway[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"];\nrelation[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"])"
+    },
+    "feature": {
+        "description": "{{ tagTrans('amenity', tags.amenity) }}",
+        "body": "{{ tagTrans('amenity', tags.amenity) }}",
+        "markerSign": "{% set data = const[tags.amenity] %}\n{% if data %}\n{{ data.sign }}\n{% endif %}"
+    },
+    "const": {
+        "fire_station": {
+            "sign": "🔥"
+        },
+        "hospital": {
+            "sign": "🏥"
+        },
+        "police": {
+            "sign": "👮"
+        },
+        "emergency_phone": {
+            "sign": "📞"
+        }
     }
 }
diff --git a/index.json b/index.json
index 312996b..d53da69 100644
--- a/index.json
+++ b/index.json
@@ -64,6 +64,9 @@
             "id": "services",
             "type": "index",
             "subCategories": [
+                {
+                    "id": "emergency"
+                },
                 {
                     "id": "education"
                 },