From c4e7d367426a94e87c32d0e183faeb3424462315 Mon Sep 17 00:00:00 2001 From: Nathan Hartley Date: Tue, 10 Jan 2023 01:25:58 -0500 Subject: [PATCH] Now only shows human powered boat rentals. --- paddling_amenities.yaml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/paddling_amenities.yaml b/paddling_amenities.yaml index 3b4cbef..2c3ef2a 100644 --- a/paddling_amenities.yaml +++ b/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: - - {% endif %} + {% endif %} markerSign: '{{ item[''sign''] }}' priority: |- @@ -84,3 +94,6 @@ const: shop=boat: sign: 🛒 priority: 3 + shop=rental: + sign: 🛒 + priority: 3 \ No newline at end of file