Main categories of OpenStreetBrowser
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.
 
 

125 lines
3.4 KiB

type: overpass
name:
ca: Serveis
cs: veřejná zařízení
de: Einrichtungen
en: Amenities
es: Instalaciones
fr: Équipements vélo
gl: Instalacións
hu: Kerékpáros létesítmények
it: Infrastrutture
ja: アメニティ
nb: Fasiliteter
nl: Voorzieningen
oc: Equipaments per lei cicistas
pl: Użyteczne w jeździe rowerem
pt: Equipamentos
pt-br: Equipamentos
ro: Facilități
sr: Додаци
tr: Tesisler
query:
13: |-
(
nwr[amenity~"^(bicycle_rental)$"];
node[amenity~"^(charging_station)$"][bicycle][bicycle!="no"];
nwr[shop~"^(bicycle)$"];
nwr[rental~"^(.*;|)bicycle(|;.*)$"];
)
16: |-
(
nwr[amenity~"^(bicycle_.*|compressed_air)$"];
node[amenity~"^(charging_station)$"][bicycle][bicycle!="no"];
nwr[shop~"^(bicycle)$"];
nwr["monitoring:bicycle"];
nwr[vending~"^(bicycle_tube)$"];
nwr[rental~"^(.*;|)bicycle(|;.*)$"];
)
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 %}
{% elseif 'bicycle' in tags.rental|split(';') %}
{% set key = 'amenity' %}
{% set value = 'bicycle_rental' %}
{% 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')) }}
{% if tags.capacity %}({{ tags.capacity }}){% endif %}
description: |-
{% if tags.amenity == 'vending_machine' %}
{{ tagTransList('amenity=vending_machine vending', value) }}
{% else %}
{{ tagTrans(key, value) }}
{% endif %}
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
filter_query: (nwr[amenity=bicycle_rental];nwr[rental~"^(.*;|)bicycle(|;.*)$"];nwr['service:bicycle:rental']['service:bicycle:rental'!='no'];)
priority: 1
man_made=monitoring_station:
sign: '#'
priority: 4
vending=bicycle_tube:
sign: T
priority: 2
amenity=compressed_air:
sign: A
priority: 2
amenity=charging_station:
sign: 🔌
priority: 2
filter:
type:
name: '{{ trans("filter:type") }}'
show_default: 'true'
type: select
values: '{% for k, v in const %}<option value="{{ k }}" query="{{ v.filter_query|default("nwr[" ~ k ~ "]") }}">{{ tagTrans(k) }}</option>{% endfor %}'