diff --git a/paddling_amenities.yaml b/paddling_amenities.yaml index 4e61569..021bc92 100644 --- a/paddling_amenities.yaml +++ b/paddling_amenities.yaml @@ -1,75 +1,106 @@ type: overpass name: - en: Paddling Hazards + en: Paddling Amenities query: - '13': |- + '14': |- ( - nwr[waterway~"^(dam|weir|waterfall|rapids|lock|lock_gate|sluice_gate)$"]; + node["canoe"="put_in"]; + node["leisure"="slipway"]; + way["canoe"="portage"]; + nwr[shop~"^(boat)$"]["boat:type"~"^(.*;|)canoe|kayak|standup_paddleboard|dinghy|pedalboat(|;.*)$"]; + nwr[rental~"^(boat)$"]["boat:type"~"^(.*;|)canoe|kayak|standup_paddleboard|dinghy|pedalboat(|;.*)$"]; + nwr["canoe_rental"="yes"]; + nwr["kayak_rental"="yes"]; + nwr["standup_paddleboard_rental"="yes"]; + nwr["dinghy_rental"="yes"]; + nwr["pedalboat_rental"="yes"]; ) feature: pre: |- - {% if tags.waterway %} + {% if tags.canoe == 'portage' and ( not attribute(tags, 'surface') or attribute(tags, 'surface') == 'water' ) %} {% set key = 'waterway' %} - {% set value = tags.waterway %} + {% set value = 'portage' %} + {% elseif tags.canoe %} + {% set key = 'canoe' %} + {% set value = tags.canoe %} + {% elseif tags.leisure %} + {% set key = 'leisure' %} + {% set value = tags.leisure %} + {% elseif tags.shop %} + {% set key = 'shop' %} + {% set value = 'shop' %} + {% elseif tags.rental or tags.canoe_rental or tags.kayak_rental or tags.standup_paddleboard_rental or tags.dingy_rental or tags.pedalboat_rental %} + {% set key = 'shop' %} + {% set value = 'rental' %} {% endif %} {% set constIndex = (key ~ "=" ~ value) %} {% set item = const[constIndex] %} title: | - {{ item['sign'] }} {{ localizedTag(tags, 'name') | default(localizedTag(tags, 'key')) | default(localizedTag(tags, 'ref')) }} + {{ localizedTag(tags, 'name') }} + {% if attribute(tags, 'ref') %} + ( {{ localizedTag(tags, 'ref') }} ) + {% endif %} description: | {{ tagTrans(key, value) }} body: |- -
-
{{ keyTrans('Description') }}
-
{{ localizedTag(tags, 'description') }}
- - {% if attribute(tags, 'operator') %} + {% if constIndex in ['canoe=put_in', 'leisure=slipway','canoe=portage'] %} +
+
{{ keyTrans('Description') }}
+
{{ localizedTag(tags, 'description') }}
+ +
{{ keyTrans('Surface') }}
+
{{ attribute(tags, 'surface') ? tagTrans('surface', attribute(tags, 'surface')) : '' }}
+
{{ keyTrans('Operator') }}
{{ attribute(tags, 'operator') ? tagTrans('operator', attribute(tags, 'operator')) : '' }}
- {% endif %} -
{{ trans('Photos') }}
-
-
    - {% if attribute(tags, 'mapillary') %} -
  • Mapillary
  • - {% endif %} -
-
+
{{ keyTrans('Access') }}
+
{{ attribute(tags, 'access') ? tagTrans('access', attribute(tags, 'access')) : '' }}
-
- markerSign: '⚠️' +
{{ keyTrans('Fee') }}
+
{{ attribute(tags, 'fee') ? tagTrans('fee', attribute(tags, 'fee')) : '' }}
+ +
{{ keyTrans('Wheelchair') }}
+
{{ attribute(tags, 'wheelchair') ? tagTrans('wheelchair', attribute(tags, 'wheelchair')) : '' }}
+ +
{{ trans('Photos') }}
+
+ +
+
+ {% endif %} + markerSign: '{{ item[''sign''] | raw }}' markerSymbol: | - {{ markerPointer({ fillColor: '#FFFFFF' }) }} + {% if item['sign'] %}{{ markerPointer({ fillColor: '#FFFFFF' }) }}{% endif %} listMarkerSymbol: | - {{ markerCircle({ fillColor: '#FFFFFF' }) }} + {% if item['sign'] %}{{ markerCircle({ fillColor: '#FFFFFF' }) }}{% endif %} priority: |- - {% if const[constIndex] is defined %} - {{ const[constIndex]['priority'] }} + {% if item is defined %} + {{ item['priority'] }} {% else %} 10 {% endif %} const: - waterway=dam: - sign: '🦫' - priority: 0 - waterway=weir: - sign: '🦫' + canoe=portage: + sign: + priority: 2 + canoe=put_in: + sign: priority: 0 - waterway=waterfall: - sign: '🌊' - priority: 0 - waterway=rapids: - sign: '🌊' - priority: 0 - waterway=lock: - sign: '🚪' - priority: 1 - waterway=lock_gate: - sign: '🚪' + leisure=slipway: + sign: priority: 1 - waterway=sluice_gate: - sign: '🦫' - priority: 0 - + shop=shop: + sign: + priority: 3 + shop=rental: + sign: + priority: 3 + waterway=portage: + sign: + priority: 2 \ No newline at end of file diff --git a/paddling_hazards.yaml b/paddling_hazards.yaml index 4e61569..821276c 100644 --- a/paddling_hazards.yaml +++ b/paddling_hazards.yaml @@ -16,7 +16,7 @@ feature: {% set constIndex = (key ~ "=" ~ value) %} {% set item = const[constIndex] %} title: | - {{ item['sign'] }} {{ localizedTag(tags, 'name') | default(localizedTag(tags, 'key')) | default(localizedTag(tags, 'ref')) }} + {{ item['sign'] | raw }} {{ localizedTag(tags, 'name') | default(localizedTag(tags, 'key')) | default(localizedTag(tags, 'ref')) }} description: | {{ tagTrans(key, value) }} body: |- @@ -39,11 +39,11 @@ feature: - markerSign: '⚠️' + markerSign: markerSymbol: | - {{ markerPointer({ fillColor: '#FFFFFF' }) }} + {{ markerPointer({ fillColor: '#ff6700' }) }} listMarkerSymbol: | - {{ markerCircle({ fillColor: '#FFFFFF' }) }} + {{ markerCircle({ fillColor: '#ff6700' }) }} priority: |- {% if const[constIndex] is defined %} {{ const[constIndex]['priority'] }} @@ -52,24 +52,24 @@ feature: {% endif %} const: waterway=dam: - sign: '🦫' + sign: priority: 0 waterway=weir: - sign: '🦫' + sign: priority: 0 waterway=waterfall: - sign: '🌊' + sign: priority: 0 waterway=rapids: - sign: '🌊' + sign: priority: 0 waterway=lock: - sign: '🚪' + sign: priority: 1 waterway=lock_gate: - sign: '🚪' + sign: priority: 1 waterway=sluice_gate: - sign: '🦫' + sign: priority: 0