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.

78 lines
2.1 KiB

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