From a37b2810c2cab506ee522e5c817de5e6cdc0ce56 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Sun, 29 Jan 2023 14:12:54 +0100 Subject: [PATCH] Add access to recycling, image/type to wastedisposal --- assets/layers/recycling/recycling.json | 60 +++++++++++++++++++ .../layers/waste_disposal/waste_disposal.json | 25 ++++++++ 2 files changed, 85 insertions(+) diff --git a/assets/layers/recycling/recycling.json b/assets/layers/recycling/recycling.json index 52dfe0fca..9edb6abb7 100644 --- a/assets/layers/recycling/recycling.json +++ b/assets/layers/recycling/recycling.json @@ -1041,6 +1041,44 @@ "it": "Quali sono gli orari di apertura di questo impianto di raccolta e riciclo?" } } + }, + { + "id": "access", + "question": { + "en": "Who can use this recycling facility?", + "nl": "Wie kan deze recyclingfaciliteit gebruiken?" + }, + "mappings": [ + { + "if": "access=yes", + "then": { + "en": "Everyone can use this recycling facility", + "nl": "Iedereen mag deze recyclingfaciliteit gebruiken" + } + }, + { + "if": "access=residents", + "then": { + "en": "Only residents can use this recycling facility", + "nl": "Enkel bewoners kunnen deze recyclingfaciliteit gebruiken" + } + }, + { + "if": "access=private", + "then": { + "en": "This recycling facility is only for private use", + "nl": "Deze recyclingfaciliteit is alleen voor privégebruik" + } + } + ], + "freeform": { + "key": "access", + "type": "string" + }, + "render": { + "en": "This recycling facility can be used by {access}", + "nl": "Deze recyclingfaciliteit kan gebruikt worden door {access}" + } } ], "filter": [ @@ -1250,6 +1288,28 @@ "osmTags": "recycling:waste=yes" } ] + }, + { + "#": "ignore-possible-duplicate", + "id": "public-access", + "options": [ + { + "question": { + "en": "Only public access", + "nl": "Enkel publiek toegankelijke afvalcontainers", + "de": "Nur öffentliche Mülltonnen", + "it": "Solo accesso pubblico", + "id": "Hanya akses publik", + "da": "Kun offentlig adgang" + }, + "osmTags": { + "or": [ + "access=yes", + "access=" + ] + } + } + ] } ], "deletion": { diff --git a/assets/layers/waste_disposal/waste_disposal.json b/assets/layers/waste_disposal/waste_disposal.json index 030776ea6..c3009f5d8 100644 --- a/assets/layers/waste_disposal/waste_disposal.json +++ b/assets/layers/waste_disposal/waste_disposal.json @@ -64,6 +64,31 @@ } ], "tagRenderings": [ + "images", + { + "id": "type", + "description": "Mapping allowing to change between waste_disposal and recycling", + "question": { + "en": "What kind of waste disposal bin is this?" + }, + "mappings": [ + { + "if": "amenity=waste_disposal", + "then": { + "en": "This is a medium to large bin for disposal of (household) waste" + } + }, + { + "if": "amenity=recycling", + "then": { + "en": "This is actually a recycling container" + }, + "addExtraTags": [ + "recycling_type=container" + ] + } + ] + }, { "id": "access", "render": {