forked from plepe/openstreetbrowser-categories-main
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwalk_amenities.json
102 lines (102 loc) · 3.27 KB
/
walk_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
{
"type": "overpass",
"name": {
"de": "Einrichtungen",
"en": "Amenities",
"fr": "Équipements piétons",
"hu": "Gyalogos létesítmények",
"pt-br": "Equipamentos"
},
"query": {
"13": [
"(",
"node[highway~\"^(elevator)$\"];",
"node[information];",
"node[tourism~\"^(viewpoint)$\"];",
"node[man_made~\"^(cairn)$\"];",
"nwr[amenity~\"^(shelter)$\"];",
")"
],
"16": [
"(",
"node[highway~\"^(crossing|elevator)$\"];",
"node[information];",
"node[tourism~\"^(viewpoint)$\"];",
"node[man_made~\"^(cairn)$\"];",
"nwr[amenity~\"^(bench|shelter)$\"];",
"node[leisure~\"^(picnic_table)$\"];",
")"
]
},
"feature": {
"pre": [
"{% if tags.information %}",
" {% set key = 'information' %}",
" {% set value = tags.information %}",
"{% elseif tags.amenity in [ 'bench', 'shelter' ] %}",
" {% set key = 'amenity' %}",
" {% set value = tags.amenity %}",
"{% elseif tags.leisure in [ 'picnic_table' ] %}",
" {% set key = 'leisure' %}",
" {% set value = tags.picnic_table%}",
"{% 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 %}",
"{% else %}",
" {% set key = 'highway' %}",
" {% set value = tags.highway %}",
"{% endif %}",
"",
"{% set type_data = const[value] %}"
],
"title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(tagTrans(key, value)) }}",
"description": "{{ tagTrans(key, value) }}",
"markerSign": "{{ type_data.sign|raw }}",
"priority": "{{ type_data.priority }}"
},
"const": {
"crossing": {
"priority": 10,
"sign": "<i class='fa fa-bars' aria-hidden='true'></i>"
},
"elevator": {
"priority": 2,
"sign": "<i class='fa fa-caret-square-o-up' aria-hidden='true'></i>"
},
"guidepost": {
"priority": 2,
"sign": "<i class='fa fa-map-signs' aria-hidden='true'></i>"
},
"map": {
"priority": 2,
"sign": "<i class='fa fa-map' aria-hidden='true'></i>"
},
"board": {
"priority": 2,
"sign": ""
},
"office": {
"priority": 1,
"sign": "<i class='fa fa-info-circle' aria-hidden='true'></i>"
},
"bench": {
"priority": 3,
"sign": "<img data-src='temaki:bench'>"
},
"picnic_table": {
"priority": 3,
"sign": "<img data-src='maki:picnic-site'>"
},
"cairn": {
"priority": 2,
"sign": ""
},
"shelter": {
"priority": 1,
"sign": "⌃"
}
}
}