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.

73 lines
2.0 KiB

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 amenity = 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'] %}
<dl>
<dt>Surface</dt>
<dd>{% if attribute(tags, 'surface') %}{{ tagTrans('surface', tags.surface) }}{% endif %}</dd>
<dt>{{ keyTrans('description') }}</dt>
<dd>{{ localizedTag(tags, 'description') }}</dd>
<dt>{{ keyKey('access') }}</dt>
<dd>{{ tagTrans('access', tags.access) }}</dd>
<dt>{{ keyTrans('fee') }}</dt>
<dd>{{ tagTrans('fee', tags.fee) }}</dd>
</dl>
{% if attribute(tags, 'mapillary') %}
<div><a href="https://www.mapillary.com/app/?focus=photo&pKey={{ attribute(tags, 'mapillary') }}" rel="noreferrer" target="_blank">Mapillary Photo</a><div>
{% endif %}
{% endif %}
markerSign: '{{ const[constIndex][''sign''] }}'
priority: |-
{% if const[constIndex] is defined %}
{{ const[constIndex]['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