-
Notifications
You must be signed in to change notification settings - Fork 11
/
health.yaml
164 lines (163 loc) · 4.06 KB
/
health.yaml
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
type: overpass
name:
ast: Salú
ca: Sanitat
cs: Zdravotnictví
de: Gesundheitsdienste
el: Υγεία
en: Health
es: Salud
fr: Santé
gl: Saúde
hu: Egészségügy
it: Salute
ja: 健康
nb: Helse
nl: Gezondheid
oc: Santat
pl: Zdrowie
pt: Saúde
pt-br: Saúde e assistência
ro: Sanatate
ru: Медицина
sr: Здравље
tr: Sağlık
uk: Здоров'я
query:
11: |-
(
nwr[amenity~"^(.*;|)(hospital)(;.*|)$"];
nwr[healthcare~"^(.*;|)(hospital|clinic)(;.*|)$"];
)
14: |-
(
nwr[amenity~"^(.*;|)(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary|scale)(;.*|)$"];
nwr[healthcare];
)
feature:
pre: |-
{% if tags.healthcare %}
{% set key = 'healthcare' %}
{% set value = tags.healthcare|split(';')[0] %}
{% else %}
{% set key = 'amenity' %}
{% set value = tags.amenity %}
{% endif %}
{% set kv = key ~ '=' ~ value %}
{% set found = { sign: '' } %}
{% for data in const %}
{% if kv in data.types %}{% set found = data %}{% endif %}
{% endfor %}
description: |-
{{ tagTransList(key, attribute(tags, key)) }}
{% if attribute(tags, 'healthcare:speciality') %}
-
{{ tagTransList('healthcare:speciality', attribute(tags, 'healthcare:speciality')) }}
{% endif %}
markerSign: '{{ found.sign|raw }}'
info: |-
<table>
{% for data in const %}
<tr>
<td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>
<td>{{ tagTrans(data.types[0]|split('=')[0], data.types[0]|split('=')[1]) }}</td>
</tr>
{% endfor %}
</table>
const:
- types:
- amenity=hospital
- healthcare=hospital
sign: <i class="fas fa-hospital-alt"></i>
- types:
- healthcare=clinic
sign: <i class="fas fa-hospital"></i>
- types:
- healthcare=centre
sign: <i class="far fa-hospital"></i>
- types:
- healthcare=doctor
- amenity=doctors
sign: <img data-src='maki:doctor'>
- types:
- amenity=pharmacy
- healthcare=pharmacy
sign: <img data-src='maki:pharmacy'>
- types:
- healthcare=dentist
- amenity=dentist
sign: <img data-src='maki:dentist'>
- types:
- amenity=baby_hatch
sign: 🚼
- types:
- amenity=scale
sign: <i class='fa-solid fa-weight-scale'></i>
- types:
- healthcare=blood_bank
sign: <img data-src='maki:blood-bank'>
- types:
- healthcare=blood_donation
sign: <img data-src='maki:blood-bank'>
- types:
- amenity=nursing_home
- types:
- amenity=social_facility
sign: <i class="fas fa-users"></i>
- types:
- amenity=veterinary
sign: <img data-src='maki:veterinary'>
- types:
- healthcare=physiotherapist
sign: <i class="fas fa-user-injured"></i>
- types:
- healthcare=psychotherapist
sign: <i class="fas fa-couch"></i>
- types:
- healthcare=alternative
sign: ''
- types:
- healthcare=audiologist
sign: <i class="fas fa-headphones-alt"></i>
- types:
- healthcare=birthing_centre
- healthcare=birthing_center
sign: <i class="fas fa-baby"></i>
- types:
- healthcare=dialysis
sign: ''
- types:
- healthcare=laboratory
sign: <i class="fas fa-vials"></i>
- types:
- healthcare=midwife
sign: ''
- types:
- healthcare=nutrition_counseling
sign: <i class="fas fa-carrot"></i>
- types:
- healthcare=occupational_therapist
sign: ''
- types:
- healthcare=optometrist
sign: <i class="fas fa-eye"></i>
- types:
- healthcare=podiatrist
sign: ''
- types:
- healthcare=rehabilitation
sign: <i class="fas fa-crutch"></i>
- types:
- healthcare=speech_therapist
sign: ''
filter:
type:
name: '{{ trans("filter:type") }}'
show_default: 'true'
type: select
values: |-
{% for data in const %}
<option value="{{ data.types[0] }}" query="({% for t in data.types %}nwr[{{ t|replace({ '=': '^' }) }}];{% endfor %})">
{{ tagTrans(data.types[0]) }}
</option>
{% endfor %}