forked from plepe/openstreetbrowser-categories-main
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cycle_amenities.json
126 lines (126 loc) · 4.05 KB
/
cycle_amenities.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
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
{
"type": "overpass",
"name": {
"de": "Einrichtungen",
"en": "Amenities",
"fr": "Équipements"
},
"query": {
"13": [
"(",
"node[amenity~\"^(bicycle_rental)$\"];",
"way[amenity~\"^(bicycle_rental)$\"];",
"relation[amenity~\"^(bicycle_rental)$\"];",
"node[shop~\"^(bicycle)$\"];",
"way[shop~\"^(bicycle)$\"];",
"relation[shop~\"^(bicycle)$\"];",
")"
],
"16": [
"(",
"node[amenity~\"^(bicycle_.*|compressed_air)$\"];",
"way[amenity~\"^(bicycle_.*|compressed_air)$\"];",
"relation[amenity~\"^(bicycle_.*|compressed_air)$\"];",
"node[shop~\"^(bicycle)$\"];",
"way[shop~\"^(bicycle)$\"];",
"relation[shop~\"^(bicycle)$\"];",
"node[\"monitoring:bicycle\"];",
"way[\"monitoring:bicycle\"];",
"relation[\"monitoring:bicycle\"];",
"node[vending~\"^(bicycle_tube)$\"];",
"way[vending~\"^(bicycle_tube)$\"];",
"relation[vending~\"^(bicycle_tube)$\"];",
")"
]
},
"feature": {
"pre": [
"{% if tags.shop in [ 'bicycle' ] %}",
" {% set key = 'shop' %}",
" {% set value = tags.shop %}",
"{% elseif attribute(tags, \"monitoring:bicycle\") %}",
" {% set key = 'man_made' %}",
" {% set value = 'monitoring_station' %}",
"{% elseif tags.vending in [ 'bicycle_tube' ] %}",
" {% set key = 'vending' %}",
" {% set value = tags.vending %}",
"{% else %}",
" {% set key = 'amenity' %}",
" {% set value = tags.amenity %}",
"{% endif %}",
"",
"{% set constIndex = (key ~ \"=\" ~ value) %}"
],
"title": [
"{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}",
"",
"{% if tags.capacity %}({{ tags.capacity }}){% endif %}"
],
"description": "{{ tagTrans(key, value) }}",
"body": [
"{% if tags.capacity %}",
" {{ keyTrans('capacity') }}: {{ tags.capacity }}",
"{% endif %}"
],
"markerSign": "{{ const[constIndex]['sign'] }}",
"priority": [
"{% if const[constIndex] and const[constIndex]['priority']['capacity'] %}",
" {% set max=const[constIndex]['priority']['default'] %}",
" {% for v in const[constIndex]['priority']['capacity'] %}",
" {% if tags.capacity >= v[0] %}{% set max=v[1] %}{% endif %}",
" {% endfor %}",
" {{ max }}",
"{% elseif const[constIndex] is defined %}",
"{{ const[constIndex]['priority'] }}",
"{% else %}",
"10",
"{% endif %}"
]
},
"const": {
"shop=bicycle": {
"sign": "🚲",
"priority": 0
},
"amenity=bicycle_repair_station": {
"sign": "🔧",
"priority": 2
},
"amenity=bicycle_parking": {
"sign": "🅿",
"priority": {
"capacity": [
[
0,
3
],
[
20,
2
],
[
100,
0
]
],
"default": 3
}
},
"amenity=bicycle_rental": {
"sign": "R",
"priority": 1
},
"man_made=monitoring_station": {
"sign": "#",
"priority": 4
},
"vending=bicycle_tube": {
"sign": "T",
"priority": 2
},
"amenity=compressed_air": {
"sign": "A",
"priority": 2
}
}
}