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.

84 lines
2.4 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. )
  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 item = 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>{{ keyTrans('Description') }}</dt>
  34. <dd>{{ localizedTag(tags, 'description') }}</dd>
  35. <dt>{{ keyTrans('Surface') }}</dt>
  36. <dd>{{ attribute(tags, 'surface') ? tagTrans('surface', attribute(tags, 'surface')) : '' }}</dd>
  37. <dt>{{ keyTrans('Operator') }}</dt>
  38. <dd>{{ attribute(tags, 'operator') ? tagTrans('operator', attribute(tags, 'operator')) : '' }}</dd>
  39. <dt>{{ keyTrans('Access') }}</dt>
  40. <dd>{{ attribute(tags, 'access') ? tagTrans('access', attribute(tags, 'access')) : '' }}</dd>
  41. <dt>{{ keyTrans('Fee') }}</dt>
  42. <dd>{{ attribute(tags, 'fee') ? tagTrans('fee', attribute(tags, 'fee')) : '' }}</dd>
  43. <dt>{{ keyTrans('Wheelchair') }}</dt>
  44. <dd>{{ attribute(tags, 'wheelchair') ? tagTrans('wheelchair', attribute(tags, 'wheelchair')) : '' }}</dd>
  45. <dt>{{ trans('Photos') }}</dt>
  46. <dd>
  47. {% if attribute(tags, 'mapillary') %}
  48. <a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary</a>
  49. {% endif %}
  50. </dd>
  51. </dl>
  52. {% endif %}
  53. markerSign: '{{ item[''sign''] }}'
  54. priority: |-
  55. {% if item is defined %}
  56. {{ item['priority'] }}
  57. {% else %}
  58. 10
  59. {% endif %}
  60. const:
  61. canoe=put_in:
  62. sign: 🛶
  63. priority: 0
  64. leisure=slipway:
  65. sign: 🚣🏻
  66. priority: 1
  67. canoe=portage:
  68. sign: 🚶🏻
  69. priority: 2
  70. shop=boat:
  71. sign: 🛒
  72. priority: 3