forked from OpenStreetBrowser/main
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.
65 lines
3.2 KiB
65 lines
3.2 KiB
{
|
|
"type": "overpass",
|
|
"name": {
|
|
"en": "Amenities",
|
|
"de": "Einrichtungen"
|
|
},
|
|
"query": {
|
|
"13": "(\nnode[amenity~\"^(bicycle_rental)$\"];\nway[amenity~\"^(bicycle_rental)$\"];\nrelation[amenity~\"^(bicycle_rental)$\"];\nnode[shop~\"^(bicycle)$\"];\nway[shop~\"^(bicycle)$\"];\nrelation[shop~\"^(bicycle)$\"];\n)",
|
|
"16": "(\nnode[amenity~\"^(bicycle_.*|compressed_air)$\"];\nway[amenity~\"^(bicycle_.*|compressed_air)$\"];\nrelation[amenity~\"^(bicycle_.*|compressed_air)$\"];\nnode[shop~\"^(bicycle)$\"];\nway[shop~\"^(bicycle)$\"];\nrelation[shop~\"^(bicycle)$\"];\nnode[\"monitoring:bicycle\"];\nway[\"monitoring:bicycle\"];\nrelation[\"monitoring:bicycle\"];\nnode[vending~\"^(bicycle_tube)$\"];\nway[vending~\"^(bicycle_tube)$\"];\nrelation[vending~\"^(bicycle_tube)$\"];\n)\n"
|
|
},
|
|
"feature": {
|
|
"pre": "{% if tags.shop in [ 'bicycle' ] %}\n {% set key = 'shop' %}\n {% set value = tags.shop %}\n{% elseif attribute(tags, \"monitoring:bicycle\") %}\n {% set key = 'man_made' %}\n {% set value = 'monitoring_station' %}\n{% elseif tags.vending in [ 'bicycle_tube' ] %}\n {% set key = 'vending' %}\n {% set value = tags.vending %}\n{% else %}\n {% set key = 'amenity' %}\n {% set value = tags.amenity %}\n{% endif %}\n\n{% set constIndex = (key ~ \"=\" ~ value) %}",
|
|
"description": "{{ tagTrans(key, value) }}",
|
|
"body": "{% if tags.capacity %}\n {{ keyTrans('capacity') }}: {{ tags.capacity }}\n{% endif %}",
|
|
"markerSign": "{{ const[constIndex]['sign'] }}",
|
|
"title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}\n\n{% if tags.capacity %}({{ tags.capacity }}){% endif %}",
|
|
"priority": "{% if const[constIndex] and const[constIndex]['priority']['capacity'] %}\n {% set max=const[constIndex]['priority']['default'] %}\n {% for v in const[constIndex]['priority']['capacity'] %}\n {% if tags.capacity >= v[0] %}{% set max=v[1] %}{% endif %}\n {% endfor %}\n {{ max }}\n{% elseif const[constIndex] is defined %}\n{{ const[constIndex]['priority'] }}\n{% else %}\n10\n{% 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
|
|
}
|
|
}
|
|
}
|