You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
2.9 KiB
91 lines
2.9 KiB
{
|
|
"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] %}"
|
|
],
|
|
"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>"
|
|
},
|
|
"cairn": {
|
|
"priority": 2,
|
|
"sign": ""
|
|
},
|
|
"shelter": {
|
|
"priority": 1,
|
|
"sign": "⌃"
|
|
}
|
|
}
|
|
}
|