-
Notifications
You must be signed in to change notification settings - Fork 11
/
walk_amenities.yaml
136 lines (135 loc) · 3.71 KB
/
walk_amenities.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
name:
ca: Serveis
cs: Veřejná zařízení
de: Einrichtungen
en: Amenities
es: Instalaciones
fr: Équipements piétons
gl: Instalacións
hu: Gyalogos létesítmények
it: Servizi
ja: アメニティ
nb: Fasiliteter
nl: Voorzieningen
oc: Equipaments pedoniers
pl: Pożyteczne w transporcie pieszym
pt-br: Equipamentos
pt: Equipamentos
sr: Додаци
tr: Olanaklar
query:
13: |-
(
node[highway~"^(elevator)$"];
node[information];
node[tourism~"^(viewpoint)$"];
node[man_made~"^(cairn)$"];
nwr[amenity~"^(shelter)$"];
way[highway~'^(footway|steps)$'][conveying];
)
16: |-
(
node[highway~"^(crossing|elevator)$"];
node[information];
node[tourism~"^(viewpoint)$"];
node[man_made~"^(cairn)$"];
nwr[amenity~"^(bench|shelter|waste_basket|drinking_water)$"];
node[leisure~"^(picnic_table)$"];
way[highway~'^(footway|steps)$'][conveying];
)
feature:
pre: |-
{% if tags.information %}
{% set key = 'information' %}
{% set value = tags.information %}
{% elseif tags.amenity in [ 'bench', 'shelter', 'waste_basket', 'drinking_water' ] %}
{% set key = 'amenity' %}
{% set value = tags.amenity %}
{% elseif tags.leisure in [ 'picnic_table' ] %}
{% set key = 'leisure' %}
{% set value = tags.leisure %}
{% elseif tags.man_made in [ 'cairn' ] %}
{% set key = 'man_made' %}
{% set value = tags.man_made %}
{% elseif tags.tourism in [ 'viewpoint'] %}
{% set key = 'tourism' %}
{% set value = tags.tourism %}
{% elseif tags.conveying and tags.highway %}
{% set key = 'highway' %}
{% set value = tags.highway ~ ' conveying' %}
{% else %}
{% set key = 'highway' %}
{% set value = tags.highway %}
{% endif %}
{% set type_data = const[key ~ '=' ~ value] %}
description: |-
{{ tagTrans(key, value) }}
body: |-
<ul>
{% if tags.waste %}
<li class='hasSymbol'>
<i class="fa-solid fa-trash-can"></i>
<span class='key'>{{ keyTrans('waste') }}:</span>
<span class='value'>{{ tagTransList('waste', tags.waste) }}</span>
</li>
{% endif %}
</ul>
markerSign: |-
{{ type_data.sign|raw }}
priority: |-
{{ type_data.priority }}
filter:
type:
name: |
{{ trans('filter:type') }}
type: select
show_default: true
values: |-
{% for kv, d in const %}
<option value='{{ kv }}' query='{{ d.query|default("nwr[" ~ kv ~"]") }}'>{{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}</option>
{% endfor %}
const:
highway=crossing:
priority: 10
sign: <img data-src='temaki:pedestrian_crosswalk'>
highway=elevator:
priority: 2
sign: <img data-src='maki:elevator'>
information=guidepost:
priority: 2
sign: <i class='fa fa-map-signs' aria-hidden='true'></i>
information=map:
priority: 2
sign: <i class='fa fa-map' aria-hidden='true'></i>
information=board:
priority: 2
sign: <img data-src='temaki:info_board'>
information=office:
priority: 1
sign: <i class='fa fa-info-circle' aria-hidden='true'></i>
amenity=bench:
priority: 3
sign: <img data-src='temaki:bench'>
leisure=picnic_table:
priority: 3
sign: <img data-src='maki:picnic-site'>
man_made=cairn:
priority: 2
sign: <img data-src='temaki:cairn'>
amenity=shelter:
priority: 1
sign: <img data-src='maki:shelter'>
amenity=waste_basket:
priority: 2
sign: 🗑
amenity=drinking_water:
priority: 3
sign: <img data-src='maki:drinking-water'>
highway=steps conveying:
sign: /
query: nwr[highway=steps][conveying]
priority: 2
highway=footway conveying:
sign: /
query: nwr[highway=footway][conveying]
priority: 2