Show human powered boat (canoe/kayak/standup paddleboard/etc) routes and amenities.
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.

62 lines
1.4 KiB

2 years ago
2 years ago
  1. type: overpass
  2. name:
  3. en: Paddling Hazards
  4. query:
  5. '12': |-
  6. (
  7. nwr[waterway~"^(dam|weir|waterfall|rapids|lock|lock_gate|sluice_gate)$"];
  8. )
  9. feature:
  10. pre: |-
  11. {% if tags.waterway %}
  12. {% set key = 'waterway' %}
  13. {% set value = tags.waterway %}
  14. {% endif %}
  15. {% set constIndex = (key ~ "=" ~ value) %}
  16. {% set item = const[constIndex] %}
  17. title: |
  18. {{ item['sign'] }} {{ localizedTag(tags, 'name') | default(localizedTag(tags, 'key')) | default(localizedTag(tags, 'ref')) }}
  19. description: |
  20. {{ tagTrans(key, value) }}
  21. body: |-
  22. <dl>
  23. <dt>{{ keyTrans('Description') }}</dt>
  24. <dd>{{ localizedTag(tags, 'description') }}</dd>
  25. </dl>
  26. {% if attribute(tags, 'mapillary') %}
  27. <div><a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary Photo</a><div>
  28. {% endif %}
  29. markerSign: '⚠️'
  30. priority: |-
  31. {% if const[constIndex] is defined %}
  32. {{ const[constIndex]['priority'] }}
  33. {% else %}
  34. 10
  35. {% endif %}
  36. const:
  37. waterway=dam:
  38. sign: '🦫'
  39. priority: 0
  40. waterway=weir:
  41. sign: '🦫'
  42. priority: 0
  43. waterway=waterfall:
  44. sign: '🌊'
  45. priority: 0
  46. waterway=rapids:
  47. sign: '🌊'
  48. priority: 0
  49. waterway=lock:
  50. sign: '🚪'
  51. priority: 1
  52. waterway=lock_gate:
  53. sign: '🚪'
  54. priority: 1
  55. waterway=sluice_gate:
  56. sign: '🦫'
  57. priority: 0