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.

249 lines
5.7 KiB

  1. query:
  2. '13': |-
  3. (
  4. node[highway~"^(elevator)$"];
  5. node[information];
  6. node[tourism~"^(viewpoint)$"];
  7. node[man_made~"^(cairn)$"];
  8. nwr[amenity~"^(shelter)$"];
  9. way[highway~'^(footway|steps)$'][conveying];
  10. )
  11. '16': |-
  12. (
  13. node[highway~"^(crossing|elevator)$"];
  14. node[information];
  15. node[tourism~"^(viewpoint)$"];
  16. node[man_made~"^(cairn)$"];
  17. nwr[amenity~"^(bench|shelter|waste_basket|drinking_water)$"];
  18. node[leisure~"^(picnic_table)$"];
  19. way[highway~'^(footway|steps)$'][conveying];
  20. )
  21. feature:
  22. pre: |-
  23. {% if tags.information %}
  24. {% set key = 'information' %}
  25. {% set value = tags.information %}
  26. {% elseif tags.amenity in [ 'bench', 'shelter', 'waste_basket', 'drinking_water' ] %}
  27. {% set key = 'amenity' %}
  28. {% set value = tags.amenity %}
  29. {% elseif tags.leisure in [ 'picnic_table' ] %}
  30. {% set key = 'leisure' %}
  31. {% set value = tags.leisure %}
  32. {% elseif tags.man_made in [ 'cairn' ] %}
  33. {% set key = 'man_made' %}
  34. {% set value = tags.man_made %}
  35. {% elseif tags.tourism in [ 'viewpoint'] %}
  36. {% set key = 'tourism' %}
  37. {% set value = tags.tourism %}
  38. {% elseif tags.conveying and tags.highway %}
  39. {% set key = 'highway' %}
  40. {% set value = tags.highway ~ ' conveying' %}
  41. {% else %}
  42. {% set key = 'highway' %}
  43. {% set value = tags.highway %}
  44. {% endif %}
  45. {% set type_data = const[key ~ '=' ~ value] %}
  46. {% set classify = '#0000ff' %}
  47. {% for k in type_data.optional %}
  48. {% if not attribute(tags, k) %}
  49. {% set classify = '#00ffff' %}
  50. {% endif %}
  51. {% endfor %}
  52. {% for k in type_data.require %}
  53. {% if not attribute(tags, k) %}
  54. {% set classify = '#ff0000' %}
  55. {% endif %}
  56. {% endfor %}
  57. description: |-
  58. {{ tagTrans(key, value) }}
  59. markerSymbol: |
  60. {{ markerPointer({ fillColor: classify }) }}
  61. listMarkerSymbol: |
  62. {{ markerCircle({ fillColor: classify }) }}
  63. markerSign: |-
  64. {{ type_data.sign|raw }}
  65. priority: |-
  66. {{ type_data.priority }}
  67. body: |-
  68. Strongly recommended tags:
  69. <ul>
  70. {% for k in type_data.require %}
  71. <li class='hasSymbol'>
  72. {{ attribute(tags, k) ? '✓' : '✕' }}
  73. <a target='_blank' href='https://wiki.openstreetmap.org/wiki/Key:{{ k }}'>{{ k }}</a>: {{ attribute(tags, k) }}
  74. </li>
  75. {% endfor %}
  76. </ul>
  77. Further recommended tags:
  78. <ul>
  79. {% for k in type_data.optional %}
  80. <li class='hasSymbol'>
  81. {{ attribute(tags, k) ? '✓' : '✕' }}
  82. <a target='_blank' href='https://wiki.openstreetmap.org/wiki/Key:{{ k }}'>{{ k }}</a>: {{ attribute(tags, k) }}
  83. </li>
  84. {% endfor %}
  85. </ul>
  86. filter:
  87. type:
  88. name: |
  89. {{ trans('filter:type') }}
  90. type: select
  91. show_default: true
  92. values: |-
  93. {% for kv, d in const %}
  94. <option value='{{ kv }}' query='{{ d.query|default("nwr[" ~ kv ~"]") }}'>{{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}</option>
  95. {% endfor %}
  96. const:
  97. highway=crossing:
  98. priority: 10
  99. sign: <img data-src='temaki:pedestrian_crosswalk'>
  100. require:
  101. - crossing
  102. optional:
  103. - crossing:island
  104. - crossing:markings
  105. - lit
  106. highway=elevator:
  107. priority: 2
  108. sign: <img data-src='maki:elevator'>
  109. require:
  110. - level
  111. - wheelchair
  112. - operator
  113. - maxweight
  114. - capacity:person
  115. optional:
  116. - level:ref
  117. - fee
  118. - bicycle
  119. - goods
  120. - display
  121. - door
  122. - door:width
  123. - door:height
  124. - handrail
  125. - lit
  126. - height
  127. - length
  128. - width
  129. - speech_output
  130. - tactile_writing:braille:de
  131. - tactile_writing:embossed_printed_letters:de
  132. information=guidepost:
  133. priority: 2
  134. sign: <i class='fa fa-map-signs' aria-hidden='true'></i>
  135. require:
  136. - tourism
  137. optional:
  138. - guidepost
  139. - guide_type
  140. - name
  141. - ele
  142. - ref
  143. information=map:
  144. priority: 2
  145. sign: <i class='fa fa-map' aria-hidden='true'></i>
  146. require:
  147. - map_type
  148. optional:
  149. - map_size
  150. - map_source
  151. information=board:
  152. priority: 2
  153. sign: <img data-src='temaki:info_board'>
  154. optional:
  155. - board_type
  156. - board:title
  157. information=office:
  158. priority: 1
  159. sign: <i class='fa fa-info-circle' aria-hidden='true'></i>
  160. require:
  161. - name
  162. optional:
  163. - operator
  164. - opening_hours
  165. - wheelchair
  166. amenity=bench:
  167. priority: 3
  168. sign: <img data-src='temaki:bench'>
  169. require:
  170. - backrest
  171. - capacity
  172. - material
  173. optional:
  174. - bench:type
  175. - covered
  176. - length
  177. - seats
  178. - two_sided
  179. leisure=picnic_table:
  180. priority: 3
  181. sign: <img data-src='maki:picnic-site'>
  182. require:
  183. - backrest
  184. - capacity
  185. - material
  186. optional:
  187. - bench:type
  188. - covered
  189. - length
  190. - two_sided
  191. man_made=cairn:
  192. priority: 2
  193. sign: <img data-src='temaki:cairn'>
  194. amenity=shelter:
  195. priority: 1
  196. sign: <img data-src='maki:shelter'>
  197. require:
  198. - shelter_type
  199. - bench
  200. - bin
  201. optional:
  202. - table
  203. - picnic_table
  204. - access
  205. - lockable
  206. amenity=waste_basket:
  207. priority: 2
  208. sign: 🗑
  209. require:
  210. - waste
  211. optional:
  212. - drive_through
  213. amenity=drinking_water:
  214. priority: 3
  215. sign: <img data-src='maki:drinking-water'>
  216. require:
  217. optional:
  218. - man_made
  219. - fountain
  220. - dog
  221. - pump
  222. - fee
  223. - bottle
  224. highway=steps conveying:
  225. sign: /
  226. query: nwr[highway=steps][conveying]
  227. priority: 2
  228. require:
  229. - level
  230. - incline
  231. optional:
  232. - level:ref
  233. - width
  234. - tactile_paving
  235. - duration
  236. highway=footway conveying:
  237. sign: /
  238. query: nwr[highway=footway][conveying]
  239. priority: 2
  240. require:
  241. - level
  242. - incline
  243. optional:
  244. - level:ref
  245. - width
  246. - tactile_paving
  247. - duration