{
"type": "overpass",
"name": {
"en": "Amenities",
"de": "Einrichtungen"
},
"query": {
"13": [
"(",
"node[highway~\"^(elevator)$\"];",
"node[information];",
"node[tourism~\"^(viewpoint)$\"];",
"node[man_made~\"^(cairn)$\"];",
"node[amenity~\"^(shelter)$\"];",
"way[amenity~\"^(shelter)$\"];",
"relation[amenity~\"^(shelter)$\"];",
")"
],
"17": [
"(",
"node[highway~\"^(crossing|elevator)$\"];",
"node[information];",
"node[tourism~\"^(viewpoint)$\"];",
"node[man_made~\"^(cairn)$\"];",
"node[amenity~\"^(shelter)$\"];",
"way[amenity~\"^(shelter)$\"];",
"relation[amenity~\"^(shelter)$\"];",
")"
]
},
"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.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] %}"
],
"description": "{{ tagTrans(key, value) }}",
"title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(tagTrans(key, value)) }}",
"markerSign": "{{ type_data.sign|raw }}",
"priority": "{{ type_data.priority }}"
},
"const": {
"crossing": {
"priority": 10,
"sign": ""
},
"elevator": {
"priority": 2,
"sign": ""
},
"guidepost": {
"priority": 2,
"sign": ""
},
"map": {
"priority": 2,
"sign": ""
},
"board": {
"priority": 2,
"sign": ""
},
"office": {
"priority": 1,
"sign": ""
},
"cairn": {
"priority": 2,
"sign": ""
},
"shelter": {
"priority": 1,
"sign": "⌃"
}
}
}