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" },