From 7edf169003720839a9cf2e2737b503d2f23b6a56 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 13 Dec 2020 20:20:34 +0100 Subject: [PATCH] Add location support for bicycle parkings --- State.ts | 2 +- assets/layers/bike_parking/bike_parking.json | 52 +++++++++++++++++++- 2 files changed, 52 insertions(+), 2 deletions(-) diff --git a/State.ts b/State.ts index 974ae94..2662d40 100644 --- a/State.ts +++ b/State.ts @@ -24,7 +24,7 @@ export default class State { // The singleton of the global state public static state: State; - public static vNumber = "0.2.5"; + public static vNumber = "0.2.5a"; // The user journey states thresholds when a new feature gets unlocked public static userJourney = { diff --git a/assets/layers/bike_parking/bike_parking.json b/assets/layers/bike_parking/bike_parking.json index 1233618..84f0e70 100644 --- a/assets/layers/bike_parking/bike_parking.json +++ b/assets/layers/bike_parking/bike_parking.json @@ -146,6 +146,51 @@ } ] }, + { + "#": "Underground?", + "question": { + "en": "What is the relative location of this bicycle parking?", + "nl": "Wat is de relatieve locatie van deze parking??" + }, + "mappings": [ + { + "if": "location=underground", + "then": { + "en": "Underground parking", + "nl": "Ondergrondse parking" + } + }, + { + "if": "location=underground", + "then": { + "en": "Underground parking", + "nl": "Ondergrondse parking" + } + }, + { + "if": "location=surface", + "then": { + "en": "Surface level parking", + "nl": "Parking op de begane grond" + } + }, + { + "if": "location=", + "then": { + "en": "Surface level parking", + "nl": "Parking op de begane grond" + }, + "hideInAnwser": true + }, + { + "if": "location=rooftop", + "then": { + "en": "Rooftop parking", + "nl": "Dakparking" + } + } + ] + }, { "#": "Is covered?", "question": { @@ -154,7 +199,12 @@ "gl": "Este aparcadoiro está cuberto? Tamén escolle \"cuberto\" para aparcadoiros interiores.", "de": "Ist dieser Parkplatz überdacht? Wählen Sie auch \"überdacht\" für Innenparkplätze." }, - "condition": "bicycle_parking!=shed", + "condition": { + "and": [ + "bicycle_parking!=shed", + "location!=underground" + ] + }, "mappings": [ { "if": "covered=yes",