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.

73 lines
2.0 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>{{ keyTrans('description') }}</dt>
  36. <dd>{{ localizedTag(tags, 'description') }}</dd>
  37. <dt>{{ keyKey('access') }}</dt>
  38. <dd>{{ tagTrans('access', tags.access) }}</dd>
  39. <dt>{{ keyTrans('fee') }}</dt>
  40. <dd>{{ tagTrans('fee', tags.fee) }}</dd>
  41. </dl>
  42. {% if attribute(tags, 'mapillary') %}
  43. <div><a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary Photo</a><div>
  44. {% endif %}
  45. {% endif %}
  46. markerSign: '{{ const[constIndex][''sign''] }}'
  47. priority: |-
  48. {% if const[constIndex] is defined %}
  49. {{ const[constIndex]['priority'] }}
  50. {% else %}
  51. 10
  52. {% endif %}
  53. const:
  54. canoe=put_in:
  55. sign: 🛶
  56. priority: 0
  57. leisure=slipway:
  58. sign: 🚣🏻
  59. priority: 1
  60. canoe=portage:
  61. sign: 🚶🏻
  62. priority: 2
  63. shop=boat:
  64. sign: 🛒
  65. priority: 3