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.6 KiB

  1. type: overpass
  2. name:
  3. ca: Serveis
  4. cs: veřejná zařízení
  5. de: Einrichtungen
  6. en: Amenities
  7. es: Instalaciones
  8. fr: Équipements vélo
  9. gl: Instalacións
  10. hu: Kerékpáros létesítmények
  11. it: Infrastrutture
  12. ja: アメニティ
  13. nb: Fasiliteter
  14. nl: Voorzieningen
  15. oc: Equipaments per lei cicistas
  16. pl: Użyteczne w jeździe rowerem
  17. pt: Equipamentos
  18. pt-br: Equipamentos
  19. ro: Facilități
  20. sr: Додаци
  21. tr: Tesisler
  22. query:
  23. 13: |-
  24. (
  25. nwr[amenity~"^(.*;|)(bicycle_rental)(;.*|)$"];
  26. node[amenity~"^(.*;|)(charging_station)(;.*|)$"][bicycle][bicycle!="no"];
  27. nwr[shop~"^(.*;|)(bicycle)(;.*|)$"];
  28. nwr[rental~"^(.*;|)bicycle(|;.*)$"];
  29. )
  30. 16: |-
  31. (
  32. nwr[amenity~"^(.*;|)(bicycle_.*|compressed_air)(;.*|)$"];
  33. node[amenity~"^(.*;|)(charging_station)(;.*|)$"][bicycle][bicycle!="no"];
  34. nwr[shop~"^(.*;|)(bicycle)(;.*|)$"];
  35. nwr["monitoring:bicycle"];
  36. nwr[vending~"^(.*;|)(bicycle_tube)(;.*|)$"];
  37. nwr[rental~"^(.*;|)bicycle(|;.*)$"];
  38. )
  39. feature:
  40. pre: |-
  41. {% if tags.shop and 'bicycle' in tags.shop|split(';') %}
  42. {% set key = 'shop' %}
  43. {% set value = tags.shop %}
  44. {% elseif attribute(tags, "monitoring:bicycle") %}
  45. {% set key = 'man_made' %}
  46. {% set value = 'monitoring_station' %}
  47. {% elseif tags.vending and 'bicycle_tube' in tags.vending|split(';') %}
  48. {% set key = 'vending' %}
  49. {% set value = 'bicycle_tube' %}
  50. {% elseif 'bicycle' in tags.rental|split(';') %}
  51. {% set key = 'amenity' %}
  52. {% set value = 'bicycle_rental' %}
  53. {% else %}
  54. {% set key = 'amenity' %}
  55. {% set value = tags.amenity %}
  56. {% endif %}
  57. {% set constIndex = (key ~ "=" ~ value) %}
  58. title: |-
  59. {{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) }}
  60. {% if tags.capacity %}({{ tags.capacity }}){% endif %}
  61. description: |-
  62. {% if tags.amenity == 'vending_machine' %}
  63. {{ tagTransList('amenity=vending_machine vending', value) }}
  64. {% else %}
  65. {{ tagTransList(key, value) }}
  66. {% endif %}
  67. body: |-
  68. {% if tags.capacity %}
  69. {{ keyTrans('capacity') }}: {{ tags.capacity }}
  70. {% endif %}
  71. markerSign: '{{ const[constIndex]["sign"] }}'
  72. priority: |-
  73. {% if const[constIndex] and const[constIndex]['priority']['capacity'] %}
  74. {% set max=const[constIndex]['priority']['default'] %}
  75. {% for v in const[constIndex]['priority']['capacity'] %}
  76. {% if tags.capacity >= v[0] %}{% set max=v[1] %}{% endif %}
  77. {% endfor %}
  78. {{ max }}
  79. {% elseif const[constIndex] is defined %}
  80. {{ const[constIndex]['priority'] }}
  81. {% else %}
  82. 10
  83. {% endif %}
  84. const:
  85. shop=bicycle:
  86. sign: 🚲
  87. priority: 0
  88. amenity=bicycle_repair_station:
  89. sign: 🔧
  90. priority: 2
  91. amenity=bicycle_parking:
  92. sign: 🅿
  93. priority:
  94. capacity:
  95. - - 0
  96. - 3
  97. - - 20
  98. - 2
  99. - - 100
  100. - 0
  101. default: 3
  102. amenity=bicycle_rental:
  103. sign: R
  104. filter_query: (nwr[amenity=bicycle_rental];nwr[rental~"^(.*;|)bicycle(|;.*)$"];nwr['service:bicycle:rental']['service:bicycle:rental'!='no'];)
  105. priority: 1
  106. man_made=monitoring_station:
  107. sign: '#'
  108. priority: 4
  109. vending=bicycle_tube:
  110. sign: T
  111. priority: 2
  112. amenity=compressed_air:
  113. sign: A
  114. priority: 2
  115. amenity=charging_station:
  116. sign: 🔌
  117. priority: 2
  118. filter:
  119. type:
  120. name: '{{ trans("filter:type") }}'
  121. show_default: 'true'
  122. type: select
  123. values: '{% for k, v in const %}<option value="{{ k }}" query="{{ v.filter_query|default("nwr[" ~ k ~ "]") }}">{{ tagTrans(k) }}</option>{% endfor %}'