From a50d1ebe7de1fcbdf6d90136adf4b66f109f824d Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Mon, 2 Dec 2024 13:21:27 +0100 Subject: [PATCH] Themes(food): Add question about seating (#1976) --- assets/layers/cafe_pub/cafe_pub.json | 7 +++++-- assets/layers/filters/filters.json | 25 +++++++++++++++++++++- assets/layers/food/food.json | 5 ++++- assets/layers/questions/questions.json | 29 +++++++++++++++++++++++++- 4 files changed, 61 insertions(+), 5 deletions(-) diff --git a/assets/layers/cafe_pub/cafe_pub.json b/assets/layers/cafe_pub/cafe_pub.json index df6bab66f..1811e3982 100644 --- a/assets/layers/cafe_pub/cafe_pub.json +++ b/assets/layers/cafe_pub/cafe_pub.json @@ -401,6 +401,7 @@ "wheelchair-access", "smoking", "service:electricity", + "seating", "dog-access", "internet", "internet-fee", @@ -412,7 +413,9 @@ "accepts_cash", "accepts_cards", "has_internet", - "has_electricity" + "has_electricity", + "outdoor_seating", + "indoor_seating" ], "deletion": { "softDeletionTags": { @@ -439,4 +442,4 @@ ] }, "allowMove": true -} +} \ No newline at end of file diff --git a/assets/layers/filters/filters.json b/assets/layers/filters/filters.json index c2ef1a5c6..ffdddd3b1 100644 --- a/assets/layers/filters/filters.json +++ b/assets/layers/filters/filters.json @@ -418,7 +418,30 @@ } } ] + }, + { + "id": "outdoor_seating", + "options": [ + { + "question": { + "en": "Has outdoor seating" + }, + "icon": "./assets/layers/outdoor_seating.svg", + "osmTags": "outdoor_seating=yes" + } + ] + }, + { + "id": "indoor_seating", + "options": [ + { + "question": { + "en": "Has indoor seating" + }, + "osmTags": "indoor_seating=yes" + } + ] } ], "allowMove": false -} +} \ No newline at end of file diff --git a/assets/layers/food/food.json b/assets/layers/food/food.json index 77d776907..d187bd0c5 100644 --- a/assets/layers/food/food.json +++ b/assets/layers/food/food.json @@ -1341,6 +1341,7 @@ "lactose_free", "smoking", "service:electricity", + "seating", "dog-access", "internet", "internet-fee", @@ -1488,6 +1489,8 @@ "filters.sugar_free", "filters.gluten_free", "filters.lactose_free", + "outdoor_seating", + "indoor_seating", "accepts_cash", "accepts_cards", "dogs" @@ -1545,4 +1548,4 @@ ] }, "allowMove": true -} +} \ No newline at end of file diff --git a/assets/layers/questions/questions.json b/assets/layers/questions/questions.json index fdc3b6d9a..2d280d579 100644 --- a/assets/layers/questions/questions.json +++ b/assets/layers/questions/questions.json @@ -3181,7 +3181,34 @@ } } ] + }, + { + "id": "seating", + "question": { + "en": "What kind of seating does {title()} have?", + "nl": "Wat voor zitplaatsen heeft {title()}?" + }, + "mappings": [ + { + "if": "outdoor_seating=yes", + "ifnot": "outdoor_seating=no", + "then": { + "en": "This place has outdoor seating", + "nl": "Deze plaats heeft zitplaatsen buiten" + }, + "icon": "./assets/layers/outdoor_seating/outdoor_seating.svg" + }, + { + "if": "indoor_seating=yes", + "ifnot": "indoor_seating=no", + "then": { + "en": "This place has indoor seating", + "nl": "Deze plaats heeft zitplaatsen binnen" + } + } + ], + "multiAnswer": true } ], "allowMove": false -} +} \ No newline at end of file