Themes(charging_station) Extract maxstay question (#1657)

This commit is contained in:
Robin van der Linde 2024-12-03 16:51:32 +01:00
parent 92738457ff
commit be50382fa0
Signed by: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D
11 changed files with 235 additions and 144 deletions

View file

@ -1790,9 +1790,9 @@
{ {
"en": "<b>Tesla Supercharger</b>", "en": "<b>Tesla Supercharger</b>",
"nl": "<b>Tesla Supercharger</b>", "nl": "<b>Tesla Supercharger</b>",
"cs": "<b>Tesla Supercharger</b>",
"de": "<b>Tesla Supercharger</b>", "de": "<b>Tesla Supercharger</b>",
"es": "<b>Tesla Supercharger</b>", "es": "<b>Tesla Supercharger</b>"
"cs": "<b>Tesla Supercharger</b>"
}, },
"Tesla-hpwc-model-s.svg", "Tesla-hpwc-model-s.svg",
[ [
@ -2530,43 +2530,15 @@
}, },
{ {
"id": "maxstay", "id": "maxstay",
"question": { "builtin": "maxstay",
"en": "What is the maximum amount of time one is allowed to stay here?", "override": {
"nl": "Hoelang mag een voertuig hier blijven staan?", "condition": {
"ca": "Quina és la quantitat màxima de temps que es permet permaneixer aquí?", "or": [
"de": "Wie lange darf man hier maximal parken?", "motorcar=yes",
"es": "¿Cuál es el tiempo máximo que se permite permanecer aquí?" "hgv=yes",
}, "bus=yes"
"freeform": { ]
"key": "maxstay",
"type": "pfloat"
},
"render": {
"en": "One can stay at most <b>{canonical(maxstay)}</b>",
"nl": "De maximale parkeertijd hier is <b>{canonical(maxstay)}</b>",
"ca": "Un pot quedar-se com a màxim <b>{canonical(maxstay)}</b>",
"de": "Die maximale Parkdauer beträgt <b>{canonical(maxstay)}</b>",
"es": "Se puede permanecer como máximo <b>{canonical(maxstay)}</b>"
},
"mappings": [
{
"if": "maxstay=unlimited",
"then": {
"en": "No timelimit on leaving your vehicle here",
"nl": "Geen maximum parkeertijd",
"ca": "No hi ha límit de temps per a deixar el teu vehicle aquí",
"de": "Keine Höchstparkdauer",
"es": "Sin límite de tiempo para dejar tu vehículo aquí"
}
} }
],
"condition": {
"or": [
"maxstay~*",
"motorcar=yes",
"hgv=yes",
"bus=yes"
]
} }
}, },
{ {
@ -2584,11 +2556,11 @@
"en": "Is this charging station part of a network?", "en": "Is this charging station part of a network?",
"nl": "Is dit oplaadpunt deel van een groter netwerk?", "nl": "Is dit oplaadpunt deel van een groter netwerk?",
"ca": "Aquesta estació de càrrega forma part d'una xarxa?", "ca": "Aquesta estació de càrrega forma part d'una xarxa?",
"cs": "Je tato nabíjecí stanice součástí sítě?",
"de": "Ist diese Ladestation Teil eines Netzwerks?", "de": "Ist diese Ladestation Teil eines Netzwerks?",
"es": "¿Este punto de carga forma parte de una red?", "es": "¿Este punto de carga forma parte de una red?",
"pl": "Czy ta stacja ładowania jest częścią sieci?", "pl": "Czy ta stacja ładowania jest częścią sieci?",
"uk": "Чи є ця зарядна станція частиною мережі?", "uk": "Чи є ця зарядна станція частиною мережі?"
"cs": "Je tato nabíjecí stanice součástí sítě?"
}, },
"freeform": { "freeform": {
"key": "network" "key": "network"
@ -2609,11 +2581,11 @@
"then": { "then": {
"en": "Not part of a bigger network", "en": "Not part of a bigger network",
"nl": "Maakt geen deel uit van een groter netwerk", "nl": "Maakt geen deel uit van een groter netwerk",
"cs": "Není součástí větší sítě",
"de": "Nicht Teil eines größeren Netzwerks", "de": "Nicht Teil eines größeren Netzwerks",
"es": "No forma parte de una red mayor", "es": "No forma parte de una red mayor",
"pl": "Nie jest częścią większej sieci", "pl": "Nie jest częścią większej sieci",
"uk": "Не є частиною великої мережі", "uk": "Не є частиною великої мережі"
"cs": "Není součástí větší sítě"
}, },
"hideInAnswer": true "hideInAnswer": true
}, },
@ -3062,11 +3034,11 @@
"en": "All vehicle types", "en": "All vehicle types",
"nl": "Alle voertuigen", "nl": "Alle voertuigen",
"ca": "Tots els tipus de vehicles", "ca": "Tots els tipus de vehicles",
"cs": "Všechny typy vozidel",
"de": "Ladestationen für alle Fahrzeugtypen", "de": "Ladestationen für alle Fahrzeugtypen",
"es": "Todos los tipos de vehículos", "es": "Todos los tipos de vehículos",
"fr": "Tous les types de véhicules", "fr": "Tous les types de véhicules",
"it": "Tutti i tipi di veicoli", "it": "Tutti i tipi di veicoli"
"cs": "Všechny typy vozidel"
} }
}, },
{ {
@ -3074,11 +3046,11 @@
"en": "Charging station for bicycles", "en": "Charging station for bicycles",
"nl": "Oplaadpunten voor fietsen", "nl": "Oplaadpunten voor fietsen",
"ca": "Punt de recàrrega per a bicicletes", "ca": "Punt de recàrrega per a bicicletes",
"cs": "Nabíjecí stanice pro kola",
"de": "Ladestationen für Fahrräder", "de": "Ladestationen für Fahrräder",
"es": "Punto de carga para bicicletas", "es": "Punto de carga para bicicletas",
"fr": "Station de recharge pour vélos", "fr": "Station de recharge pour vélos",
"it": "Stazione di ricarica per biciclette", "it": "Stazione di ricarica per biciclette"
"cs": "Nabíjecí stanice pro kola"
}, },
"osmTags": "bicycle=yes" "osmTags": "bicycle=yes"
}, },
@ -3087,11 +3059,11 @@
"en": "Charging station for cars", "en": "Charging station for cars",
"nl": "Oplaadpunten voor auto's", "nl": "Oplaadpunten voor auto's",
"ca": "Estació de càrrega per a cotxes", "ca": "Estació de càrrega per a cotxes",
"cs": "Nabíjecí stanice pro auta",
"de": "Ladestationen für Autos", "de": "Ladestationen für Autos",
"es": "Punto de carga para coches", "es": "Punto de carga para coches",
"fr": "Station de recharge pour voitures", "fr": "Station de recharge pour voitures",
"it": "Stazione di ricarica per auto", "it": "Stazione di ricarica per auto"
"cs": "Nabíjecí stanice pro auta"
}, },
"osmTags": { "osmTags": {
"or": [ "or": [
@ -3110,11 +3082,11 @@
"en": "Only working charging stations", "en": "Only working charging stations",
"nl": "Enkel werkende oplaadpunten", "nl": "Enkel werkende oplaadpunten",
"ca": "Només estacions de recàrrega en funcionament", "ca": "Només estacions de recàrrega en funcionament",
"cs": "Pouze funkční nabíjecí stanice",
"de": "Nur Ladestationen in Betrieb", "de": "Nur Ladestationen in Betrieb",
"es": "Solo puntos de carga en funcionamiento", "es": "Solo puntos de carga en funcionamiento",
"fr": "Seulement les stations de recharge qui fonctionnent", "fr": "Seulement les stations de recharge qui fonctionnent",
"it": "Solo stazioni di ricarica funzionanti", "it": "Solo stazioni di ricarica funzionanti"
"cs": "Pouze funkční nabíjecí stanice"
}, },
"osmTags": { "osmTags": {
"and": [ "and": [
@ -3133,10 +3105,10 @@
"en": "All connectors", "en": "All connectors",
"nl": "Alle types", "nl": "Alle types",
"ca": "Tots els connectors", "ca": "Tots els connectors",
"cs": "Všechny konektory",
"de": "Alle Anschlüsse", "de": "Alle Anschlüsse",
"es": "Todos los conectores", "es": "Todos los conectores",
"it": "Tutti i connettori", "it": "Tutti i connettori"
"cs": "Všechny konektory"
} }
}, },
{ {

View file

@ -559,34 +559,15 @@
}, },
{ {
"id": "maxstay", "id": "maxstay",
"question": { "builtin": "maxstay",
"en": "What is the maximum amount of time one is allowed to stay here?", "override": {
"nl": "Hoelang mag een voertuig hier blijven staan?" "condition": {
}, "or": [
"freeform": { "motorcar=yes",
"key": "maxstay", "hgv=yes",
"type": "pfloat" "bus=yes"
}, ]
"render": {
"en": "One can stay at most <b>{canonical(maxstay)}</b>",
"nl": "De maximale parkeertijd hier is <b>{canonical(maxstay)}</b>"
},
"mappings": [
{
"if": "maxstay=unlimited",
"then": {
"en": "No timelimit on leaving your vehicle here",
"nl": "Geen maximum parkeertijd"
}
} }
],
"condition": {
"or": [
"maxstay~*",
"motorcar=yes",
"hgv=yes",
"bus=yes"
]
} }
}, },
{ {
@ -1050,4 +1031,4 @@
}, },
"neededChangesets": 10 "neededChangesets": 10
} }
} }

View file

@ -350,7 +350,8 @@
"cs": "Počet parkovacích míst {capacity}", "cs": "Počet parkovacích míst {capacity}",
"es": "Hay {capacity} plazas de aparcamiento" "es": "Hay {capacity} plazas de aparcamiento"
} }
} },
"maxstay"
], ],
"deletion": { "deletion": {
"softDeletionTags": { "softDeletionTags": {
@ -365,4 +366,4 @@
"enableRelocation": false, "enableRelocation": false,
"enableImproveAccuracy": true "enableImproveAccuracy": true
} }
} }

View file

@ -3208,7 +3208,43 @@
} }
], ],
"multiAnswer": true "multiAnswer": true
},
{
"id": "maxstay",
"question": {
"en": "What is the maximum amount of time one is allowed to stay here?",
"nl": "Wat is de maximale tijd die je hier mag blijven?"
},
"freeform": {
"key": "maxstay",
"type": "pfloat"
},
"render": {
"en": "One can stay at most <b>{canonical(maxstay)}</b>",
"nl": "Je mag hier maximaal <b>{canonical(maxstay)}</b> blijven"
},
"mappings": [
{
"if": "maxstay=unlimited",
"then": {
"en": "There is no limit to the amount of time one can stay here",
"nl": "Er is geen limiet aan de tijd die je hier mag blijven"
}
}
]
} }
], ],
"allowMove": false "allowMove": false,
"units": [
{
"maxstay": {
"quantity": "duration",
"denominations": [
"minutes",
"hours",
"days"
]
}
}
]
} }

View file

@ -2137,15 +2137,6 @@
}, },
"question": "Hi ha que pagar per utilitzar aquest punt de càrrega?" "question": "Hi ha que pagar per utilitzar aquest punt de càrrega?"
}, },
"maxstay": {
"mappings": {
"0": {
"then": "No hi ha límit de temps per a deixar el teu vehicle aquí"
}
},
"question": "Quina és la quantitat màxima de temps que es permet permaneixer aquí?",
"render": "Un pot quedar-se com a màxim <b>{canonical(maxstay)}</b>"
},
"phone": { "phone": {
"question": "A quin número es pot cridar si hi ha algun problema amb aquest punt de càrrega?", "question": "A quin número es pot cridar si hi ha algun problema amb aquest punt de càrrega?",
"render": "En cas de problemes, truqueu a <a href='tel:{phone}'>{phone}</a>" "render": "En cas de problemes, truqueu a <a href='tel:{phone}'>{phone}</a>"
@ -7597,10 +7588,10 @@
"0": { "0": {
"then": "Açò és una escala mecànica" "then": "Açò és una escala mecànica"
}, },
"1": { "3": {
"then": "Açò no és una escala mecànica" "then": "Açò no és una escala mecànica"
}, },
"2": { "4": {
"then": "Això no és una escala mecànica" "then": "Això no és una escala mecànica"
} }
} }

View file

@ -8510,10 +8510,10 @@
"0": { "0": {
"then": "Jedná se o eskalátor" "then": "Jedná se o eskalátor"
}, },
"1": { "3": {
"then": "Nejedná se o eskalátor" "then": "Nejedná se o eskalátor"
}, },
"2": { "4": {
"then": "Nejedná se o eskalátor" "then": "Nejedná se o eskalátor"
} }
} }

View file

@ -2691,15 +2691,6 @@
}, },
"question": "Muss man für die Nutzung dieser Ladestation bezahlen?" "question": "Muss man für die Nutzung dieser Ladestation bezahlen?"
}, },
"maxstay": {
"mappings": {
"0": {
"then": "Keine Höchstparkdauer"
}
},
"question": "Wie lange darf man hier maximal parken?",
"render": "Die maximale Parkdauer beträgt <b>{canonical(maxstay)}</b>"
},
"phone": { "phone": {
"question": "Welche Nummer kann man anrufen, wenn es ein Problem mit dieser Ladestation gibt?", "question": "Welche Nummer kann man anrufen, wenn es ein Problem mit dieser Ladestation gibt?",
"render": "Bei Problemen, anrufen unter <a href='tel:{phone}'>{phone}</a>" "render": "Bei Problemen, anrufen unter <a href='tel:{phone}'>{phone}</a>"
@ -10226,10 +10217,10 @@
"0": { "0": {
"then": "Das ist eine Rolltreppe" "then": "Das ist eine Rolltreppe"
}, },
"1": { "3": {
"then": "Das ist keine Rolltreppe" "then": "Das ist keine Rolltreppe"
}, },
"2": { "4": {
"then": "Das ist keine Rolltreppe" "then": "Das ist keine Rolltreppe"
} }
} }

View file

@ -2691,15 +2691,6 @@
}, },
"question": "Does one have to pay to use this charging station?" "question": "Does one have to pay to use this charging station?"
}, },
"maxstay": {
"mappings": {
"0": {
"then": "No timelimit on leaving your vehicle here"
}
},
"question": "What is the maximum amount of time one is allowed to stay here?",
"render": "One can stay at most <b>{canonical(maxstay)}</b>"
},
"phone": { "phone": {
"question": "What number can one call if there is a problem with this charging station?", "question": "What number can one call if there is a problem with this charging station?",
"render": "In case of problems, call <a href='tel:{phone}'>{phone}</a>" "render": "In case of problems, call <a href='tel:{phone}'>{phone}</a>"
@ -4963,6 +4954,20 @@
} }
} }
}, },
"16": {
"options": {
"0": {
"question": "Has outdoor seating"
}
}
},
"17": {
"options": {
"0": {
"question": "Has indoor seating"
}
}
},
"2": { "2": {
"options": { "options": {
"0": { "0": {
@ -5541,6 +5546,26 @@
}, },
"question": "Does {title()} deliver food to your home?" "question": "Does {title()} deliver food to your home?"
}, },
"drive-through": {
"mappings": {
"0": {
"then": "This fast-food restaurant has a drive-through"
},
"1": {
"then": "This fast-food restaurant does not have a drive-through"
}
},
"question": "Does this fast-food restaurant have a drive-through?"
},
"drive-through-opening_hours": {
"mappings": {
"0": {
"then": "The opening hours of the drive-through are the same as the restaurant"
}
},
"question": "What are the opening hours of the drive-through?",
"render": "<h3>Drive-through opening hours</h3>{opening_hours_table(opening_hours:drive_through)}"
},
"friture-oil": { "friture-oil": {
"mappings": { "mappings": {
"0": { "0": {
@ -8642,6 +8667,15 @@
"mastodon": { "mastodon": {
"question": "What is the Mastodon-handle of {title()}?" "question": "What is the Mastodon-handle of {title()}?"
}, },
"maxstay": {
"mappings": {
"0": {
"then": "There is no limit to the amount of time one can stay here"
}
},
"question": "What is the maximum amount of time one is allowed to stay here?",
"render": "One can stay at most <b>{canonical(maxstay)}</b>"
},
"multilevels": { "multilevels": {
"override": { "override": {
"question": "What levels does this elevator go to?", "question": "What levels does this elevator go to?",
@ -8755,6 +8789,17 @@
}, },
"question": "Is {title()} available all around the year?" "question": "Is {title()} available all around the year?"
}, },
"seating": {
"mappings": {
"0": {
"then": "This place has outdoor seating"
},
"1": {
"then": "This place has indoor seating"
}
},
"question": "What kind of seating does {title()} have?"
},
"service:electricity": { "service:electricity": {
"mappings": { "mappings": {
"0": { "0": {
@ -10619,12 +10664,19 @@
"then": "This is an escalator" "then": "This is an escalator"
}, },
"1": { "1": {
"then": "This is not an escalator" "then": "This is an escalator moving in the direction of the arrows"
}, },
"2": { "2": {
"then": "This is a reversible escalator"
},
"3": {
"then": "This is not an escalator"
},
"4": {
"then": "This is not an escalator" "then": "This is not an escalator"
} }
} },
"question": "Is this an escalator?"
}, },
"handrail": { "handrail": {
"mappings": { "mappings": {

View file

@ -2691,15 +2691,6 @@
}, },
"question": "¿Hay que pagar para usar este punto de carga?" "question": "¿Hay que pagar para usar este punto de carga?"
}, },
"maxstay": {
"mappings": {
"0": {
"then": "Sin límite de tiempo para dejar tu vehículo aquí"
}
},
"question": "¿Cuál es el tiempo máximo que se permite permanecer aquí?",
"render": "Se puede permanecer como máximo <b>{canonical(maxstay)}</b>"
},
"phone": { "phone": {
"question": "¿A qué número se puede llamar si hay un problema con este punto de carga?", "question": "¿A qué número se puede llamar si hay un problema con este punto de carga?",
"render": "En caso de problemas, llama a <a href='tel:{phone}'>{phone}</a>" "render": "En caso de problemas, llama a <a href='tel:{phone}'>{phone}</a>"
@ -10192,10 +10183,10 @@
"0": { "0": {
"then": "Esta es una escalera mecánica" "then": "Esta es una escalera mecánica"
}, },
"1": { "3": {
"then": "Esta no es una escalera mecánica" "then": "Esta no es una escalera mecánica"
}, },
"2": { "4": {
"then": "Esta no es una escalera mecánica" "then": "Esta no es una escalera mecánica"
} }
} }

View file

@ -719,10 +719,10 @@
"0": { "0": {
"then": "Ini adalah eskalator" "then": "Ini adalah eskalator"
}, },
"1": { "3": {
"then": "Ini bukan eskalator" "then": "Ini bukan eskalator"
}, },
"2": { "4": {
"then": "Ini bukan eskalator" "then": "Ini bukan eskalator"
} }
} }

View file

@ -1733,6 +1733,9 @@
}, },
"title": { "title": {
"mappings": { "mappings": {
"0": {
"then": "{name}"
},
"1": { "1": {
"then": "Vogelkijkhut {name}" "then": "Vogelkijkhut {name}"
}, },
@ -2349,15 +2352,6 @@
}, },
"question": "Moet men betalen om dit oplaadpunt te gebruiken?" "question": "Moet men betalen om dit oplaadpunt te gebruiken?"
}, },
"maxstay": {
"mappings": {
"0": {
"then": "Geen maximum parkeertijd"
}
},
"question": "Hoelang mag een voertuig hier blijven staan?",
"render": "De maximale parkeertijd hier is <b>{canonical(maxstay)}</b>"
},
"phone": { "phone": {
"question": "Wat is het telefoonnummer van de beheerder van dit oplaadpunt?", "question": "Wat is het telefoonnummer van de beheerder van dit oplaadpunt?",
"render": "Bij problemen, bel naar <a href='tel:{phone}'>{phone}</a>" "render": "Bij problemen, bel naar <a href='tel:{phone}'>{phone}</a>"
@ -4721,6 +4715,26 @@
}, },
"question": "Levert {title()} aan huis?" "question": "Levert {title()} aan huis?"
}, },
"drive-through": {
"mappings": {
"0": {
"then": "Dit fastfoodrestaurant heeft een drive-through"
},
"1": {
"then": "Dit fastfoodrestaurant heeft geen drive-through"
}
},
"question": "Heeft dit fastfoodrestaurant een drive-through?"
},
"drive-through-opening_hours": {
"mappings": {
"0": {
"then": "De openingsuren van de drive-through zijn dezelfde als die van het restaurant"
}
},
"question": "Wat zijn de openingsuren van de drive-through?",
"render": "<h3>Openingsuren van de drive-through</h3>{opening_hours_table(opening_hours:drive_through)}"
},
"friture-oil": { "friture-oil": {
"mappings": { "mappings": {
"0": { "0": {
@ -5810,6 +5824,11 @@
} }
}, },
"title": { "title": {
"mappings": {
"0": {
"then": "{name}"
}
},
"render": "Natuurgebied" "render": "Natuurgebied"
} }
}, },
@ -6341,6 +6360,21 @@
"render": "Picknicktafel" "render": "Picknicktafel"
} }
}, },
"play_forest": {
"description": "Een speelbos is een vrij toegankelijke zone in een bos",
"name": "Speelbossen",
"title": {
"mappings": {
"0": {
"then": "{name}"
},
"1": {
"then": "Speelbos {name}"
}
},
"render": "Speelbos"
}
},
"playground": { "playground": {
"deletion": { "deletion": {
"nonDeleteMappings": { "nonDeleteMappings": {
@ -6997,6 +7031,15 @@
} }
} }
}, },
"maxstay": {
"mappings": {
"0": {
"then": "Er is geen limiet aan de tijd die je hier mag blijven"
}
},
"question": "Wat is de maximale tijd die je hier mag blijven?",
"render": "Je mag hier maximaal <b>{canonical(maxstay)}</b> blijven"
},
"multilevels": { "multilevels": {
"override": { "override": {
"question": "Naar welke verdiepingen gaat deze lift?", "question": "Naar welke verdiepingen gaat deze lift?",
@ -7110,6 +7153,17 @@
}, },
"question": "Is {title()} heel het jaar beschikbaar?" "question": "Is {title()} heel het jaar beschikbaar?"
}, },
"seating": {
"mappings": {
"0": {
"then": "Deze plaats heeft zitplaatsen buiten"
},
"1": {
"then": "Deze plaats heeft zitplaatsen binnen"
}
},
"question": "Wat voor zitplaatsen heeft {title()}?"
},
"service:electricity": { "service:electricity": {
"mappings": { "mappings": {
"0": { "0": {
@ -7875,6 +7929,9 @@
}, },
"title": { "title": {
"mappings": { "mappings": {
"0": {
"then": "{name}"
},
"1": { "1": {
"then": "Voetpad" "then": "Voetpad"
}, },
@ -8094,12 +8151,19 @@
"then": "Dit is een roltrap" "then": "Dit is een roltrap"
}, },
"1": { "1": {
"then": "Dit is geen roltrap" "then": "Dit is een roltrap die beweegt in de richting van de pijlen"
}, },
"2": { "2": {
"then": "Dit is een roltrap die van richting kan veranderen"
},
"3": {
"then": "Dit is geen roltrap"
},
"4": {
"then": "Dit is geen roltrap" "then": "Dit is geen roltrap"
} }
} },
"question": "Is dit een roltrap?"
}, },
"handrail": { "handrail": {
"mappings": { "mappings": {
@ -9887,13 +9951,25 @@
} }
}, },
"village_green": { "village_green": {
"description": "Een laag die dorpsgroen toont (gemeenschapsgroen, maar niet echt een park)" "description": "Een laag die dorpsgroen toont (gemeenschapsgroen, maar niet echt een park)",
"name": "Speelweide",
"title": {
"mappings": {
"0": {
"then": "{name}"
}
},
"render": "Speelweide"
}
}, },
"visitor_information_centre": { "visitor_information_centre": {
"description": "Een bezoekerscentrum biedt informatie over een specifieke attractie of bezienswaardigheid waar het is gevestigd.", "description": "Een bezoekerscentrum biedt informatie over een specifieke attractie of bezienswaardigheid waar het is gevestigd.",
"name": "Bezoekerscentrum", "name": "Bezoekerscentrum",
"title": { "title": {
"mappings": { "mappings": {
"0": {
"then": "{name:nl}"
},
"1": { "1": {
"then": "{name}" "then": "{name}"
} }
@ -10123,4 +10199,4 @@
"render": "windturbine" "render": "windturbine"
} }
} }
} }