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.

65 lines
1.8 KiB

  1. type: overpass
  2. name:
  3. en: Paddling Amenities
  4. query:
  5. '12': |-
  6. (
  7. node["canoe"="put_in"];
  8. node["leisure"="slipway"];
  9. way["canoe"="portage"];
  10. nwr[shop~"^(boat)$"]["boat:type"~"^(.*;|)canoe|kayak|sup(|;.*)$"];
  11. )
  12. feature:
  13. pre: |-
  14. {% if tags.canoe %}
  15. {% set key = 'canoe' %}
  16. {% set value = tags.canoe %}
  17. {% elseif tags.leisure %}
  18. {% set key = 'leisure' %}
  19. {% set value = tags.leisure %}
  20. {% elseif tags.shop %}
  21. {% set key = 'shop' %}
  22. {% set value = tags.shop %}
  23. {% endif %}
  24. {% set constIndex = (key ~ "=" ~ value) %}
  25. {% set amenity = const[constIndex] %}
  26. title: |
  27. {{ localizedTag(tags, 'name') | default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) }}
  28. description: |
  29. {{ tagTrans(key, value) }}
  30. body: |-
  31. {% if constIndex in ['canoe=put_in', 'leisure=slipway','canoe=portage'] %}
  32. <dl>
  33. <dt>Surface</dt>
  34. <dd>{% if attribute(tags, 'surface') %}{{ tagTrans('surface', tags.surface) }}{% endif %}</dd>
  35. <dt>{{ localizedTag(tags, 'description') }}</dt>
  36. <dd>{{ tags.description }}</dd>
  37. </dl>
  38. {% if attribute(tags, 'mapillary') %}
  39. <div><a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary Photo</a><div>
  40. {% endif %}
  41. {% endif %}
  42. markerSign: '{{ const[constIndex][''sign''] }}'
  43. priority: |-
  44. {% if const[constIndex] is defined %}
  45. {{ const[constIndex]['priority'] }}
  46. {% else %}
  47. 10
  48. {% endif %}
  49. const:
  50. canoe=put_in:
  51. sign: 🛶
  52. priority: 0
  53. leisure=slipway:
  54. sign: 🚣🏻
  55. priority: 1
  56. canoe=portage:
  57. sign: 🚶🏻
  58. priority: 2
  59. shop=boat:
  60. sign: 🛒
  61. priority: 3