From dddfeda3e8a19840fdf4e3c412e2d17994ec0a0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Fri, 16 Nov 2018 11:18:16 +0100 Subject: [PATCH] bathing_swimming: new category --- index.json | 3 +++ swimming_bathing.json | 48 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 swimming_bathing.json diff --git a/index.json b/index.json index d5c01b9..aebc34b 100644 --- a/index.json +++ b/index.json @@ -46,6 +46,9 @@ }, { "id": "outdoor" + }, + { + "id": "swimming_bathing" } ] }, diff --git a/swimming_bathing.json b/swimming_bathing.json new file mode 100644 index 0000000..6a99877 --- /dev/null +++ b/swimming_bathing.json @@ -0,0 +1,48 @@ +{ + "type": "overpass", + "name": { + "en": "Swimming and bathing", + "de": "Schwimmen und Baden" + }, + "query": { + "13": [ + "(", + "nwr[leisure=swimming_area];", + "nwr[natural~\"^(water|beach)\"][sport~\"^(|.*;)swimming(.*|)$\"];", + "nwr[leisure~\"^(water_park|beach_resort)$\"];", + "nwr[leisure=sports_centre][sport~\"^(|.*;)swimming(.*|)$\"];", + "nwr[amenity=public_bath];", + "nwr[tourism=spa_resort];", + ")" + ], + "16": [ + "(", + "nwr[leisure=swimming_area];", + "nwr[natural~\"^(water|beach)\"][sport~\"^(|.*;)swimming(;.*|)$\"];", + "nwr[leisure~\"^(water_park|beach_resort)$\"];", + "nwr[leisure=sports_centre][sport~\"^(|.*;)swimming(;.*|)$\"];", + "nwr[amenity=public_bath];", + "nwr[tourism=spa_resort];", + "", + "nwr[leisure=swimming_pool][access!=private];", + "nwr[leisure=sauna];", + ")" + ] + }, + "feature": { + "pre": "", + "description": [ + "{% if tags.amenity == 'public_path' %}", + " {{ tagTrans('amenity', 'public_path') }}", + " {% if attribute(tags, 'bath:type') %}({{ tagTrans('bath:type', attribute(tags, 'bath:type')) }}){% endif %}", + "{% elseif tags.tourism == 'spa_resort' %}", + "{{ tagTrans('tourism', tags.tourism ) }}", + "{% elseif tags.leisure %}", + "{{ tagTrans('leisure', tags.leisure) }}", + "{% elseif tags.natural %}", + "{{ tagTrans('natural', tags.natural) }}", + "{% endif %}" + ], + "priority": "{% if tags.name %}0{% else %}1{% endif %}" + } +}