-
Notifications
You must be signed in to change notification settings - Fork 11
/
shop.yaml
306 lines (305 loc) · 6.41 KB
/
shop.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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
type: overpass
name:
ast: Compres
ca: Compres
cs: Obchody
de: Einkauf
el: Αγορές
en: Shopping
es: Compras
et: Ostmine
fr: Magasins/Boutiques
gl: Compras
hu: Vásárlás
it: Acquisti
ja: ショッピング
nb: Shopping
nl: Winkelen
oc: Botigas
pl: Zakupy
pt: Compras
pt-br: Compras
ro: Cumpărături
ru: Покупки
sr: Куповина
tr: Alışveriş
uk: Торгівля
query:
14: (node[shop~'^(mall|department_store)$'];way[shop~'^(mall|department_store)$'];relation[shop~'^(mall|department_store)$'];);
16: (node[shop];way[shop];relation[shop];);
feature:
pre: |-
{% set shop0 = tags.shop|split(';')[0] %}
{% set current = const.default %}
{% if const.shops[shop0] %}
{% set current = const.shops[shop0] %}
{% endif %}
description: |-
{% if tags.shop == 'yes' %}
{{ keyTrans('shop') }}
{% else %}
{{ tagTransList('shop', tags.shop) }}
{% endif %}
markerSign: |-
{% set c = current.sign %}
{% if c|slice(0, 4) == 'fas:' %}
<i class="fas fa-{{ c|slice(4) }}"></i>
{% elseif c|slice(0, 4) == 'far:' %}
<i class="far fa-{{ c|slice(4) }}"></i>
{% elseif c|slice(0, 5) == 'maki:' %}
<img data-src="{{ c }}">
{% else %}
{{ c|raw }}
{% endif %}
body: |-
<ul>
{% if tags.clothes %}
<li class='hasSymbol'>
<i class="fas fa-tshirt" aria-hidden="true"></i>
<span class='key'>{{ keyTrans('clothes') }}:</span>
<span class='value'>{{ tagTransList('clothes', tags.clothes) }}</span>
</li>
{% endif %}
</ul>
const:
default:
sign: fas:shopping-bag
shops:
vacant:
sign: fas:times
alcohol:
sign: fas:wine-bottle
wine:
sign: fas:wine-bottle
beverages:
sign: fas:wine-bottle
baby_goods:
sign: fas:baby
bag:
sign: fas:shopping-bag
general:
sign: fas:shopping-bag
variety_store:
sign: fas:shopping-bag
bakery:
sign: fas:birthday-cake
confectionery:
sign: fas:birthday-cake
pastry:
sign: fas:birthday-cake
bicycle:
sign: fas:bicycle
motorcycle:
sign: fas:motorcycle
boutique:
sign: '👚'
clothes:
sign: '👚'
fabric:
sign: ''
fashion:
sign: '👚'
leather:
sign: '👚'
sewing:
sign: '👚'
tailor:
sign: '👚'
dry_cleaning:
sign: '👚'
sea_food:
sign: fas:fish
butcher:
sign: fas:utensils
cheese:
sign: fas:utensils
chocolate:
sign: fas:utensils
deli:
sign: fas:utensils
dairy:
sign: fas:utensils
farm:
sign: fas:utensils
greengrocer:
sign: fas:utensils
pasta:
sign: fas:utensils
spices:
sign: fas:utensils
coffee:
sign: fas:coffee
tea:
sign: fas:coffee
convenience:
sign: fas:shopping-basket
department_store:
sign: fas:building
mall:
sign: fas:building
electronics:
sign: fas:tv
computer:
sign: fas:desktop
electrical:
sign: fas:bolt
lighting:
sign: fas:bulb
fishing:
sign: fas:fish
toys:
sign: fas:dice
florist:
sign: '🌷'
garden_centre:
sign: '🌷'
hairdresser:
sign: '👱'
ice_cream:
sign: fas:ice-cream
jewelry:
sign: fas:ring
kiosk:
sign: fas:newspaper
newsagent:
sign: fas:newspaper
shoes:
sign: fas:shoe-prints
travel_agency:
sign: '🧳'
supermarket:
sign: fas:shopping-cart
watches:
sign: far:clock
gift:
sign: fas:gift
locksmith:
sign: fas:key
houseware:
sign: fas:tools
doityourself:
sign: fas:tools
hardware:
sign: fas:tools
art:
sign: fas:palette
stationery:
sign: fas:pencil-ruler
funeral_directors:
sign: maki:monument
copyshop:
sign: fas:copy
tobacco:
sign: fas:smoking
furniture:
sign: fas:couch
interior_decoration:
sign: fas:couch
car_repair:
sign: fas:car
car:
sign: fas:car
car_parts:
sign: fas:car
tyres:
sign: fas:car
beauty:
sign: ''
cosmetics:
sign: ''
music:
sign: fas:guitar
optician:
sign: fas:glasses
books:
sign: fas:book
sports:
sign: fas:basketball-ball
chemist:
sign: fas:tablets
pet:
sign: fas:paw
photo:
sign: fas:camera
ticket:
sign: fas:ticket-alt
outdoor:
sign: fas:campground
massage:
sign: ''
paint:
sign: fas:paint-roller
trade:
sign: fas:tools
bookmaker:
sign: fas:money-bill-wave
kitchen:
sign: fas:utensils
second_hand:
sign: ''
lottery:
sign: fas:money-bill-wave
pawnbroker:
sign: fas:money-bill-wave
bed:
sign: fas:bed
charity:
sign: fas:hand-holding-heart
tattoo:
sign: ''
mobile_phone:
sign: fas:mobile-alt
clothes:
- women
- men
- leather
- fur
- underwear
- children
- wedding
- sports
- workwear
- lingerie
- babies
- hats
- fashion
- suits
- unisexs
- traditional
- costumes
- bridal
- oversize
- swimwear
- maternity
- brand
- military
- vintage
- accessories
- schoolwear
- motorcycle
- denim
filter:
shop:
name: '{{ trans(''filter:type'') }}'
type: select
show_default: 'true'
values: '{% set list = [] %}{% for k, v in const.shops %}<option value="{{ k }}">{% set list = list|merge([ k ]) %}{{ tagTrans(''shop'', k) }}</option>{% endfor %}<option weight=''1'' value=''other'' query=''nwr[shop][shop!~"^(|.*;)({{ list|join(''|'') }})(|;.*)$"]''>{{ trans(''other'') }}</option>'
sort: natsort
op: has
clothes:
name: '{{ keyTrans(''clothes'') }}'
type: select
values: |-
{% set list = [] %}
<option weight="-1" value="*" query="nwr[clothes]">{{ trans("any value") }}</option>
{% for k in const.clothes %}
{% set list = list|merge([ k ]) %}
<option value="{{ k }}">
{{ tagTrans("clothes", k) }}
</option>
{% endfor %}
<option weight="1" value="other" query="nwr[clothes][clothes!~"^(|.*;)({{ list|join("|") }})(|;.*)$"]">
{{ trans("other") }}
</option>
sort: natsort
op: has