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.

46 lines
1.1 KiB

  1. type: overpass
  2. name:
  3. en: Paddling Hazards
  4. query:
  5. '12': |-
  6. (
  7. nwr[waterway~"^(dam|weir)$"];
  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