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.

66 lines
1.6 KiB

2 years ago
2 years ago
  1. type: overpass
  2. name:
  3. en: Paddling Hazards
  4. query:
  5. '13': |-
  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. <dt>{{ keyTrans('Operator') }}</dt>
  26. <dd>{{ attribute(tags, 'operator') ? tagTrans('operator', attribute(tags, 'operator')) : '' }}</dd>
  27. </dl>
  28. {% if attribute(tags, 'mapillary') %}
  29. <div><a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary Photo</a><div>
  30. {% endif %}
  31. markerSign: '⚠️'
  32. priority: |-
  33. {% if const[constIndex] is defined %}
  34. {{ const[constIndex]['priority'] }}
  35. {% else %}
  36. 10
  37. {% endif %}
  38. const:
  39. waterway=dam:
  40. sign: '🦫'
  41. priority: 0
  42. waterway=weir:
  43. sign: '🦫'
  44. priority: 0
  45. waterway=waterfall:
  46. sign: '🌊'
  47. priority: 0
  48. waterway=rapids:
  49. sign: '🌊'
  50. priority: 0
  51. waterway=lock:
  52. sign: '🚪'
  53. priority: 1
  54. waterway=lock_gate:
  55. sign: '🚪'
  56. priority: 1
  57. waterway=sluice_gate:
  58. sign: '🦫'
  59. priority: 0