Opening hours mapping charging stations

This commit is contained in:
Robin van der Linde 2022-10-30 20:33:25 +01:00
parent 40b53687ac
commit ed8b097437
Signed by: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D
2 changed files with 18 additions and 43 deletions

View file

@ -3767,31 +3767,17 @@
} }
}, },
{ {
"id": "OH", "builtin": "opening_hours_24_7",
"render": "{opening_hours_table(opening_hours)}", "override": {
"freeform": {
"key": "opening_hours",
"type": "opening_hours"
},
"question": { "question": {
"en": "When is this charging station opened?", "en": "When is this charging station opened?",
"nl": "Wanneer is dit oplaadpunt beschikbaar??", "nl": "Wanneer is dit oplaadpunt beschikbaar??",
"da": "Hvornår er denne ladestation åben?", "da": "Hvornår er denne ladestation åben?",
"de": "Wann ist diese Ladestation geöffnet?", "de": "Wann ist diese Ladestation geöffnet?",
"es": "¿Cuándo abre esta estación de carga?" "es": "¿Cuándo abre esta estación de carga?"
}
}, },
"mappings": [ "id": "OH"
{
"if": "opening_hours=24/7",
"then": {
"en": "24/7 opened (including holidays)",
"nl": "24/7 open - ook tijdens vakanties",
"da": "Åbent døgnet rundt (også på helligdage)",
"de": "Die Station ist durchgehend geöffnet (einschließlich Feiertage)",
"es": "Abre 24/7 (incluidos días festivos)"
}
}
]
}, },
{ {
"id": "fee", "id": "fee",

View file

@ -197,25 +197,14 @@
"id": "$$$" "id": "$$$"
}, },
{ {
"id": "OH", "builtin": "opening_hours_24_7",
"render": "{opening_hours_table(opening_hours)}", "override": {
"freeform": {
"key": "opening_hours",
"type": "opening_hours"
},
"question": { "question": {
"en": "When is this charging station opened?", "en": "When is this charging station opened?",
"nl": "Wanneer is dit oplaadpunt beschikbaar??" "nl": "Wanneer is dit oplaadpunt beschikbaar??"
}
}, },
"mappings": [ "id": "OH"
{
"if": "opening_hours=24/7",
"then": {
"en": "24/7 opened (including holidays)",
"nl": "24/7 open - ook tijdens vakanties"
}
}
]
}, },
{ {
"id": "fee", "id": "fee",