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.

156 lines
5.2 KiB

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