From 4733111a774ca364c7d65a5cd2c82c5a4a7edca3 Mon Sep 17 00:00:00 2001 From: Wieland <29458682+wielandb@users.noreply.github.com> Date: Thu, 29 Aug 2024 08:26:25 +0200 Subject: [PATCH] Do not ask for "passenger_information_display" if "departures_board=realtime" (#292) * Add speech output question for departures board on platform --- assets/question_catalog/definition.json | 44 +++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/assets/question_catalog/definition.json b/assets/question_catalog/definition.json index 0d2eaac8..81d40c1b 100644 --- a/assets/question_catalog/definition.json +++ b/assets/question_catalog/definition.json @@ -657,6 +657,9 @@ "public_transport": "platform", "passenger_information_display": false }, + "!osm_tags": { + "departures_board": "realtime" + }, "!parent": [ { "osm_tags": { @@ -708,6 +711,47 @@ } ] }, + { + "question": { + "name": "@passengerInformationDisplaySpeechOutputName", + "text": "@passengerInformationDisplaySpeechOutputText", + "description": "@passengerInformationDisplaySpeechOutputDescription", + "image": [ + "assets/question_catalog/images/passenger_information_display_speech_output.jpg" + ] + }, + "answer": { + "type": "Bool", + "input": [ + { + "osm_tags": { + "departures_board:speech_output": "yes" + } + }, + { + "osm_tags": { + "departures_board:speech_output": "no" + } + } + ] + }, + "conditions": [ + { + "osm_tags": { + "public_transport": "platform", + "departures_board": "realtime", + "departures_board:speech_output": false + }, + "!parent": [ + { + "osm_tags": { + "public_transport": "platform" + } + } + ] + } + ] + }, { "question": { "name": "@announcementsName",