Add location support for bicycle parkings

This commit is contained in:
Pieter Vander Vennet 2020-12-13 20:20:34 +01:00
parent a1d0607715
commit 7edf169003
2 changed files with 52 additions and 2 deletions

View file

@ -24,7 +24,7 @@ export default class State {
// The singleton of the global state // The singleton of the global state
public static state: 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 // The user journey states thresholds when a new feature gets unlocked
public static userJourney = { public static userJourney = {

View file

@ -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?", "#": "Is covered?",
"question": { "question": {
@ -154,7 +199,12 @@
"gl": "Este aparcadoiro está cuberto? Tamén escolle \"cuberto\" para aparcadoiros interiores.", "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." "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": [ "mappings": [
{ {
"if": "covered=yes", "if": "covered=yes",