forked from plepe/openstreetbrowser-categories-main
-
Notifications
You must be signed in to change notification settings - Fork 0
/
health.json
88 lines (88 loc) · 3.04 KB
/
health.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"type": "overpass",
"name": {
"ast": "Salú",
"cs": "Zdravotnictví",
"de": "Gesundheitsdienste",
"el": "Υγεία",
"en": "Health",
"fr": "Santé",
"it": "Sanità",
"ja": "健康",
"nl": "Gezondheid",
"pl": "Zdrowie",
"ro": "Sanatate",
"ru": "Медицина",
"uk": "Здоров'я"
},
"query": {
"11": [
"(",
"node[amenity~\"^(hospital)$\"];",
"way[amenity~\"^(hospital)$\"];",
"relation[amenity~\"^(hospital)$\"];",
"node[healthcare~\"^(hospital|clinic)$\"];",
"way[healthcare~\"^(hospital|clinic)$\"];",
"relation[healthcare~\"^(hospital|clinic)$\"];",
")"
],
"14": [
"(",
"node[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];",
"node[emergency=defibrillator];",
"way[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];",
"relation[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];",
"node[healthcare];",
"way[healthcare];",
"relation[healthcare];",
")"
]
},
"feature": {
"pre": [
"{% if tags.emergency in [ 'defibrillator' ] %}",
" {% set key = 'emergency' %}",
" {% set value = tags.emergency %}",
"{% elseif tags.healthcare %}",
" {% set key = 'healthcare' %}",
" {% set value = tags.healthcare %}",
"{% else %}",
" {% set key = 'amenity' %}",
" {% set value = tags.amenity %}",
"{% endif %}"
],
"description": [
"{{ tagTrans(key, value) }}",
"{% if attribute(tags, 'healthcare:speciality') %}",
"-",
"{{ tagTransList('healthcare:speciality', attribute(tags, 'healthcare:speciality')) }}",
"{% endif %}"
],
"markerSign": "{{ const[value]|raw }}"
},
"info": [
"<table>",
"{% for value, sign in const %}",
" <tr>",
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ sign|raw }}</div></td>",
" <td>{{ tagTrans('amenity', value) }}</td>",
" </tr>",
"{% endfor %}",
"</table>"
],
"const": {
"baby_hatch": "🚼",
"blood_bank": "<img src='maki:blood-bank'>",
"blood_donation": "<img src='maki:blood-bank'>",
"clinic": "🏥",
"defibrillator": "<img src='maki:defibrillator'>",
"dentist": "<img src='maki:dentist'>",
"doctor": "<img src='maki:doctor'>",
"doctors": "<img src='maki:doctor'>",
"hospital": "🏥",
"nursing_home": "",
"pharmacy": "<img src='maki:pharmacy'>",
"social_facility": "",
"veterinary": "<img src='maki:veterinary'>"
}
}