diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-03-27 18:12:20 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-03-27 18:12:24 +0100 |
commit | 401eafc3c06ec4139c49a0bb1f804e0c4eb6fd28 (patch) | |
tree | fe9019e1fae2bb64e42e5fd202e352de7564ed87 /lib | |
parent | 7a5e555343a05205e379eebffa078cb6843336e8 (diff) |
stationboard: link to HAFAS ÖBB backend for stops in austria
Diffstat (limited to 'lib')
-rw-r--r-- | lib/DBInfoscreen/Controller/Stationboard.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm index 79a2505..8d450f2 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -1739,6 +1739,11 @@ sub handle_result { my $params = $self->req->params->clone; $params->param( hafas => not $params->param('hafas') ); if ( $params->param('hafas') ) { + if ( $data->{station_eva} >= 8100000 + and $data->{station_eva} < 8200000 ) + { + $params->param( hafas => 'ÖBB' ); + } $api_link = '/' . $data->{station_eva} . '?' . $params->to_string; $api_text = 'Auf Nahverkehr wechseln'; $api_icon = 'train'; |