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.

86 lines
2.5 KiB

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