type: overpass
name:
en: Paddling Amenities
query:
'12': |-
(
node["canoe"="put_in"];
node["leisure"="slipway"];
way["canoe"="portage"];
nwr[shop~"^(boat)$"]["boat:type"~"^(.*;|)canoe|kayak|sup(|;.*)$"];
)
feature:
pre: |-
{% if 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 = tags.shop %}
{% endif %}
{% set constIndex = (key ~ "=" ~ value) %}
{% set item = const[constIndex] %}
title: |
{{ localizedTag(tags, 'name') | default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) }}
description: |
{{ tagTrans(key, value) }}
body: |-
{% 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')) : '' }}
- {{ keyTrans('Access') }}
- {{ attribute(tags, 'access') ? tagTrans('access', attribute(tags, 'access')) : '' }}
- {{ keyTrans('Fee') }}
- {{ attribute(tags, 'fee') ? tagTrans('fee', attribute(tags, 'fee')) : '' }}
- {{ keyTrans('Wheelchair') }}
- {{ attribute(tags, 'wheelchair') ? tagTrans('wheelchair', attribute(tags, 'wheelchair')) : '' }}
- {{ trans('Photos') }}
-
{% if attribute(tags, 'mapillary') %}
Mapillary
{% endif %}
{% endif %}
markerSign: '{{ item[''sign''] }}'
priority: |-
{% if item is defined %}
{{ item['priority'] }}
{% else %}
10
{% endif %}
const:
canoe=put_in:
sign: πΆ
priority: 0
leisure=slipway:
sign: π£π»
priority: 1
canoe=portage:
sign: πΆπ»
priority: 2
shop=boat:
sign: π
priority: 3