Skip to content

Commit

Permalink
Do not ask for "passenger_information_display" if "departures_board=r…
Browse files Browse the repository at this point in the history
…ealtime" (#292)

* Add speech output question for departures board on platform
  • Loading branch information
wielandb committed Aug 29, 2024
1 parent 15ac544 commit 4733111
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions assets/question_catalog/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,9 @@
"public_transport": "platform",
"passenger_information_display": false
},
"!osm_tags": {
"departures_board": "realtime"
},
"!parent": [
{
"osm_tags": {
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 4733111

Please sign in to comment.