Browse Source

Now only shows human powered boat rentals.

master
Nathan Hartley 1 year ago
parent
commit
c4e7d36742
  1. 23
      paddling_amenities.yaml

23
paddling_amenities.yaml

@ -7,8 +7,13 @@ query:
node["canoe"="put_in"];
node["leisure"="slipway"];
way["canoe"="portage"];
nwr[shop~"^(boat)$"]["boat:type"~"^(.*;|)canoe|kayak|sup(|;.*)$"];
nwr[amenity~\"^(boat_rental)$\"];
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: |-
@ -21,13 +26,19 @@ feature:
{% elseif tags.shop %}
{% set key = 'shop' %}
{% set value = tags.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: |
{{ localizedTag(tags, 'name') | default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) }}
{{ localizedTag(tags, 'name') }}
{% if attribute(tags, 'ref') %}
( {{ localizedTag(tags, 'ref') }} )
{% endif %}
description: |
{{ tagTrans(key, value) }}
body: |-
@ -60,8 +71,7 @@ feature:
</ul>
</dd>
</dl>
{% endif %}
{% endif %}
markerSign: '{{ item[''sign''] }}'
priority: |-
@ -84,3 +94,6 @@ const:
shop=boat:
sign: 🛒
priority: 3
shop=rental:
sign: 🛒
priority: 3
Loading…
Cancel
Save