Main categories of OpenStreetBrowser with support for whitewater
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.
 
 

127 lines
4.1 KiB

{
"type": "overpass",
"name": {
"de": "Einrichtungen",
"en": "Amenities",
"fr": "Équipements vélo",
"pt-br": "Equipamentos"
},
"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
}
}
}