diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-07-25 06:44:41 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-07-25 06:44:41 +0200 |
commit | b06177261061ab3e716743b5d5b57f6a6d8cc977 (patch) | |
tree | 9108bffb055fd2bf366b43e9fc2b5190342d9dd9 /lib/DBInfoscreen | |
parent | 2558df1b91e8aa2116fa88e34fc09055dca900ec (diff) |
Stationboard: Link to BLS fo swiss stations
Diffstat (limited to 'lib/DBInfoscreen')
-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 bb45454..2729c19 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -2015,6 +2015,11 @@ sub handle_result { { $params->param( hafas => 'ÖBB' ); } + elsif ( $data->{station_eva} >= 8500000 + and $data->{station_eva} < 8600000 ) + { + $params->param( hafas => 'BLS' ); + } $api_link = '/' . $data->{station_eva} . '?' . $params->to_string; $api_text = 'Auf Nahverkehr wechseln'; $api_icon = 'train'; |