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.

158 lines
5.5 KiB

2 years ago
  1. name:
  2. ca: Instal·lacions de Rem
  3. en: Paddling Amenities
  4. fr: Équipements de pagayage
  5. it: Equipaggiamento per la navigazione a remo
  6. pl: Udogodnienia związane z wiosłowaniem
  7. pt-br: Equipamentos
  8. tr: Kürek Tesisleri
  9. type: overpass
  10. query:
  11. '14': |-
  12. (
  13. node["canoe"~"^(put_in|egress|put_in;egress)$"];
  14. node["waterway"="access_point"];
  15. node["leisure"="slipway"];
  16. node["waterway"="access_point"];
  17. way["canoe"="portage"];
  18. way[highway][portage];
  19. nwr[shop~"^(boat)$"]["boat:type"~"^(.*;|)canoe|kayak|standup_paddleboard|dinghy|pedalboat(|;.*)$"];
  20. nwr[rental~"^(boat)$"]["boat:type"~"^(.*;|)canoe|kayak|standup_paddleboard|dinghy|pedalboat(|;.*)$"];
  21. nwr["canoe_rental"="yes"];
  22. nwr["kayak_rental"="yes"];
  23. nwr["standup_paddleboard_rental"="yes"];
  24. nwr["dinghy_rental"="yes"];
  25. nwr["pedalboat_rental"="yes"];
  26. )
  27. feature:
  28. pre: |-
  29. {% if tags.canoe == 'portage' or attribute(tags, 'portage') %}
  30. {% set key = 'portage' %}
  31. {% set value = 'portage' %}
  32. {% elseif tags.waterway and tags.waterway== 'access_point' %}
  33. {% set key = 'waterway' %}
  34. {% set value = tags.waterway %}
  35. {% elseif tags.canoe and tags.canoe not in ['yes','designated','permissive','permit','discouraged','private','no']%}
  36. {% set key = 'canoe' %}
  37. {% set value = tags.canoe %}
  38. {% elseif tags.leisure %}
  39. {% set key = 'leisure' %}
  40. {% set value = tags.leisure %}
  41. {% elseif tags.shop %}
  42. {% set key = 'shop' %}
  43. {% set value = 'shop' %}
  44. {% elseif tags.rental or tags.canoe_rental or tags.kayak_rental or tags.standup_paddleboard_rental or tags.dingy_rental or tags.pedalboat_rental %}
  45. {% set key = 'shop' %}
  46. {% set value = 'rental' %}
  47. {% endif %}
  48. {% set constIndex = (key ~ "=" ~ value) %}
  49. {% set item = const[constIndex] %}
  50. title: |
  51. {{ localizedTag(tags, 'name') }}
  52. {% if attribute(tags, 'ref') %}
  53. ( {{ localizedTag(tags, 'ref') }} )
  54. {% endif %}
  55. description: |
  56. {{ tagTrans(key, value) }}
  57. body: |-
  58. {% if key not in ['shop'] %}
  59. <ul>
  60. {% if attribute(tags, 'surface') %}
  61. <li class='hasSymbol'>
  62. <i class='fa fa-window-minimize'></i>
  63. {{ keyTrans('Surface') }}:
  64. <span class='value'>{{ attribute(tags, 'surface') ? tagTrans('surface', attribute(tags, 'surface')) : '' }}</span>
  65. </li>
  66. {% endif %}
  67. {% if attribute(tags, 'operator') %}
  68. <li class='hasSymbol'>
  69. <i class='fa fa-drivers-license-o'></i>
  70. {{ keyTrans('Operator') }}:
  71. <span class='value'>{{ attribute(tags, 'operator') ? tagTrans('operator', attribute(tags, 'operator')) : '' }}</span>
  72. </li>
  73. {% endif %}
  74. {% if attribute(tags, 'access') %}
  75. <li class='hasSymbol'>
  76. <i class='fa fa-unlock'></i>
  77. {{ keyTrans('Access') }}:
  78. <span class='value'>{{ attribute(tags, 'access') ? tagTrans('access', attribute(tags, 'access')) : '' }}</span>
  79. </li>
  80. {% endif %}
  81. {% if attribute(tags, 'canoe') and tags.canoe in ['yes','designated','permissive','permit','discouraged','private','no'] %}
  82. <li class='hasSymbol'>
  83. <i class='fa fa-unlock'></i>
  84. {{ keyTrans('Canoe Access') }}:
  85. <span class='value'>{{ attribute(tags, 'canoe') ? tagTrans('access', attribute(tags, 'canoe')) : '' }}</span>
  86. </li>
  87. {% endif %}
  88. {% if attribute(tags, 'portage') and tags.portage in ['yes','designated','permissive','permit','discouraged','private','no'] %}
  89. <li class='hasSymbol'>
  90. <i class='fa fa-unlock'></i>
  91. {{ keyTrans('Portage Access') }}:
  92. <span class='value'>{{ attribute(tags, 'portage') ? tagTrans('access', attribute(tags, 'portage')) : '' }}</span>
  93. </li>
  94. {% endif %}
  95. {% if attribute(tags, 'fee') %}
  96. <li class='hasSymbol'>
  97. <i class='fa fa-money'></i>
  98. {{ keyTrans('Fee') }}:
  99. <span class='value'>{{ attribute(tags, 'fee') ? tagTrans('fee', attribute(tags, 'fee')) : '' }}</span>
  100. </li>
  101. {% endif %}
  102. {% if attribute(tags, 'mapillary') %}
  103. <li class='hasSymbol'>
  104. <i class='fa fa-camera'></i>
  105. {{ trans('Photos') }}:
  106. <span class='value'>
  107. <a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary</a>
  108. </span>
  109. </li>
  110. {% endif %}
  111. </ul>
  112. {% endif %}
  113. <!-- Description and Wheelchair rendered from detailsBody.html. -->
  114. markerSign: '{{ item[''sign''] | raw }}'
  115. markerSymbol: |
  116. {% if item['sign'] %}{{ markerPointer({ fillColor: '#FFFFFF' }) }}{% endif %}
  117. listMarkerSymbol: |
  118. {% if item['sign'] %}{{ markerCircle({ fillColor: '#FFFFFF' }) }}{% endif %}
  119. priority: |-
  120. {% if item is defined %}
  121. {{ item['priority'] }}
  122. {% else %}
  123. 10
  124. {% endif %}
  125. const:
  126. portage=portage:
  127. sign:
  128. priority: 2
  129. waterway=access_point:
  130. sign: <i class="fas fa-arrows-alt-v"></i>
  131. priority: 0
  132. canoe=put_in:
  133. sign: <i class="fas fa-long-arrow-alt-down"></i>
  134. priority: 0
  135. canoe=egress:
  136. sign: <i class="fas fa-long-arrow-alt-up"></i>
  137. priority: 0
  138. canoe=put_in;egress:
  139. sign: <i class="fas fa-arrows-alt-v"></i>
  140. priority: 0
  141. leisure=slipway:
  142. sign: <i class="fas fa-ship"></i>
  143. priority: 1
  144. shop=shop:
  145. sign: <i class="fas fa-store-alt"></i>
  146. priority: 3
  147. shop=rental:
  148. sign: <i class="fas fa-store"></i>
  149. priority: 3