-
Notifications
You must be signed in to change notification settings - Fork 11
/
gastro.yaml
234 lines (234 loc) · 5.19 KB
/
gastro.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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
name:
ast: Gastronomía
ca: Gastronomia
cs: Stravování
de: Gastronomie
el: Γαστρονομία
en: Gastronomy
es: Gastronomía
fr: Restauration
gl: Restauración
hu: Vendéglátás
it: Gastronomia
ja: 食べ物
nb: Gastronomi
nl: Gastronomie
oc: Restauracion/ Gastronomia
pl: Gastronomia
pt-br: Gastronomia
pt: Restauração
ro: Gastronomie
ru: Общепит
sr: Гастрономија
tr: Gastronomi
uk: Гастрономія
type: overpass
query:
15: nwr[amenity~'^(.*; *|)(bar|biergarten|cafe|fast_food|food_court|ice_cream|pub|restaurant|canteen)(| *;.*)$'];
feature:
description: |
{{ tagTransList('amenity', tags.amenity) }}
details: |
{{ tagTransList('cuisine', tags.cuisine) }}
body: |
<ul>
<li class='hasSymbol'>
<i class="fa fa-cutlery" aria-hidden="true"></i>
<span class='key'>{{ keyTrans('cuisine') }}:</span>
<span class='value'>{{ tagTransList('cuisine', tags.cuisine)|default(trans('unknown')) }}</span>
</li>
{% set diets = tagsPrefix(tags, 'diet:') %}
{% if diets %}
<li class='hasSymbol'>
<i class="fa fa-cutlery" aria-hidden="true"></i>
<span class='key'>{{ keyTrans('diet') }}:</span>
<span class='value'>
{% for kv, k in diets %}
{% set v = tags[k] %}
<span title='{{ k ~ '=' ~ v }}' style='white-space: nowrap; margin-right: 0.5em;'>{% if v == 'no' %}✘ {% elseif v == 'only' %}❗{% else %}✔{% endif %}{{ keyTrans(k) }}</span>
{% endfor %}
</span></li>
{% endif %}
</ul>
markerSign: |
{% if tags.amenity=='bar' %}🍸{% elseif tags.amenity=='biergarten'%}🍻{% elseif tags.amenity=='cafe' %}☕{% elseif tags.amenity=='fast_food' %}🍔{% elseif tags.amenity=='ice_cream' %}🍨{% elseif tags.amenity=='pub' %}🍺{% else %}🍴{% endif %}
filter:
amenity:
name: |
{{ trans('filter:type') }}
type: select
show_default: true
values:
- bar
- biergarten
- cafe
- fast_food
- food_court
- ice_cream
- pub
- restaurant
- canteen
valueName: |
{{ tagTrans('amenity', value) }}
op: 'has'
cuisine_food:
name: |
{{ keyTrans('cuisine/food') }}
type: select
key: cuisine
values:
- barbecue
- burger
- casserole
- chicken
- couscous
- curry
- fish
- fish_and_chips
- fried_food
- friture
- gyros
- kebab
- noodle
- pasta
- pizza
- sandwich
- sausage
- seafood
- soup
- steak_house
- sub
- sushi
- tapas
- wings
valueName: |
{{ tagTrans('cuisine', value) }}
op: has
cuisine_dessert:
name: |
{{ keyTrans('cuisine/dessert') }}
type: select
key: cuisine
values:
- bagel
- biscuit
- bougatsa
- cake
- coffee_shop
- cookie
- crepe
- dessert
- donut
- empanada
- frozen_yogurt
- gingerbread
- ice_cream
- chimney_cake
- langos
- pancake
- pastry
- petit_four
- pie
- pogacha
- poppy_seed_roll
- profiterole
- punch_cake
- savory_pancakes
- strudel
- teahouse
- waffle
valueName: |
{{ tagTrans('cuisine', value) }}
op: has
cuisine_ethnicity:
name: |
{{ keyTrans('cuisine/ethnicity') }}
type: select
key: cuisine
values:
- afghan
- african
- american
- arab
- argentinian
- asian
- australian
- baiana
- balkan
- basque
- bavarian
- belarusan
- bolivian
- brazilian
- cantonese
- capixaba
- caribbean
- chinese
- croatian
- czech
- danish
- french
- gaucho
- german
- greek
- hawaiian
- hunan
- hungarian
- indian
- international
- iranian
- italian
- japanese
- jewish
- korean
- kyo_ryouri
- latin_american
- lebanese
- malagasy
- mediterranean
- mexican
- mineira
- new_mexican
- okinawa_ryori
- pakistani
- peruvian
- polish
- portuguese
- regional
- rhenish
- russian
- shandong
- sichuan
- spanish
- texan
- tex-mex
- thai
- turkish
- vietnamese
- westphalian
valueName: |
{{ tagTrans('cuisine', value) }}
op: has
diet:
name: |
{{ keyTrans('diet') }}
type: select
values: |
<option weight='-1' value='*' query='nwr[~"^diet:"~"."]'>{{ repoTrans('Objects with diet information') }}</option>
{% for key, def in const.diet %}
<option value='{{ key }}' query='nwr["{{ key }}"]["{{ key }}"!=no]'>{{ keyTrans(key) }}</option>
{% endfor %}
const:
diet:
diet:vegan: {}
diet:vegetarian: {}
diet:pescetarian: {}
diet:lacto_vegetarian: {}
diet:ovo_vegetarian: {}
diet:fruitarian: {}
diet:raw: {}
diet:gluten_free: {}
diet:dairy_free: {}
diet:lactose_free: {}
diet:halal: {}
diet:kosher: {}