Main categories of OpenStreetBrowser
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.

105 lines
3.6 KiB

  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|standup_paddleboard|dinghy|pedalboat(|;.*)$"];
  11. nwr[rental~"^(boat)$"]["boat:type"~"^(.*;|)canoe|kayak|standup_paddleboard|dinghy|pedalboat(|;.*)$"];
  12. nwr["canoe_rental"="yes"];
  13. nwr["kayak_rental"="yes"];
  14. nwr["standup_paddleboard_rental"="yes"];
  15. nwr["dinghy_rental"="yes"];
  16. nwr["pedalboat_rental"="yes"];
  17. )
  18. feature:
  19. pre: |-
  20. {% if tags.canoe == 'portage' and ( not attribute(tags, 'surface') or attribute(tags, 'surface') == 'water' ) %}
  21. {% set key = 'waterway' %}
  22. {% set value = 'portage' %}
  23. {% elseif tags.canoe %}
  24. {% set key = 'canoe' %}
  25. {% set value = tags.canoe %}
  26. {% elseif tags.leisure %}
  27. {% set key = 'leisure' %}
  28. {% set value = tags.leisure %}
  29. {% elseif tags.shop %}
  30. {% set key = 'shop' %}
  31. {% set value = 'shop' %}
  32. {% elseif tags.rental or tags.canoe_rental or tags.kayak_rental or tags.standup_paddleboard_rental or tags.dingy_rental or tags.pedalboat_rental %}
  33. {% set key = 'shop' %}
  34. {% set value = 'rental' %}
  35. {% endif %}
  36. {% set constIndex = (key ~ "=" ~ value) %}
  37. {% set item = const[constIndex] %}
  38. title: |
  39. {{ localizedTag(tags, 'name') }}
  40. {% if attribute(tags, 'ref') %}
  41. ( {{ localizedTag(tags, 'ref') }} )
  42. {% endif %}
  43. description: |
  44. {{ tagTrans(key, value) }}
  45. body: |-
  46. {% if constIndex in ['canoe=put_in', 'leisure=slipway','canoe=portage'] %}
  47. <dl>
  48. <dt>{{ keyTrans('Description') }}</dt>
  49. <dd>{{ localizedTag(tags, 'description') }}</dd>
  50. <dt>{{ keyTrans('Surface') }}</dt>
  51. <dd>{{ attribute(tags, 'surface') ? tagTrans('surface', attribute(tags, 'surface')) : '' }}</dd>
  52. <dt>{{ keyTrans('Operator') }}</dt>
  53. <dd>{{ attribute(tags, 'operator') ? tagTrans('operator', attribute(tags, 'operator')) : '' }}</dd>
  54. <dt>{{ keyTrans('Access') }}</dt>
  55. <dd>{{ attribute(tags, 'access') ? tagTrans('access', attribute(tags, 'access')) : '' }}</dd>
  56. <dt>{{ keyTrans('Fee') }}</dt>
  57. <dd>{{ attribute(tags, 'fee') ? tagTrans('fee', attribute(tags, 'fee')) : '' }}</dd>
  58. <dt>{{ keyTrans('Wheelchair') }}</dt>
  59. <dd>{{ attribute(tags, 'wheelchair') ? tagTrans('wheelchair', attribute(tags, 'wheelchair')) : '' }}</dd>
  60. <dt>{{ trans('Photos') }}</dt>
  61. <dd>
  62. <ul>
  63. {% if attribute(tags, 'mapillary') %}
  64. <li><a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary</a></li>
  65. {% endif %}
  66. </ul>
  67. </dd>
  68. </dl>
  69. {% endif %}
  70. markerSign: '{{ item[''sign''] | raw }}'
  71. markerSymbol: |
  72. {% if item['sign'] %}{{ markerPointer({ fillColor: '#FFFFFF' }) }}{% endif %}
  73. listMarkerSymbol: |
  74. {% if item['sign'] %}{{ markerCircle({ fillColor: '#FFFFFF' }) }}{% endif %}
  75. priority: |-
  76. {% if item is defined %}
  77. {{ item['priority'] }}
  78. {% else %}
  79. 10
  80. {% endif %}
  81. const:
  82. canoe=portage:
  83. sign: <i class="fas fa-walking"></i>
  84. priority: 2
  85. canoe=put_in:
  86. sign: <i class="fas fa-expand-alt"></i>
  87. priority: 0
  88. leisure=slipway:
  89. sign: <i class="fas fa-ship"></i>
  90. priority: 1
  91. shop=shop:
  92. sign: <i class="fas fa-store-alt"></i>
  93. priority: 3
  94. shop=rental:
  95. sign: <i class="fas fa-store"></i>
  96. priority: 3
  97. waterway=portage:
  98. sign:
  99. priority: 2