diff --git a/lib/Travelynx/Helper/IRIS.pm b/lib/Travelynx/Helper/IRIS.pm index deed79a88ef900f7169bf0573015a71b5bf25bfb..f96aeb6f9b5241e0c9ad0b659408ecb320157f62 100644 --- a/lib/Travelynx/Helper/IRIS.pm +++ b/lib/Travelynx/Helper/IRIS.pm @@ -42,7 +42,7 @@ sub get_departures { = Travel::Status::DE::IRIS::Stations::get_station($station); if ( @station_matches == 1 ) { - $station = $station_matches[0][0]; + $station = $station_matches[0][2]; my $status = Travel::Status::DE::IRIS->new( station => $station, main_cache => $self->{main_cache}, @@ -109,7 +109,7 @@ sub get_departures_p { = Travel::Status::DE::IRIS::Stations::get_station($station); if ( @station_matches == 1 ) { - $station = $station_matches[0][0]; + $station = $station_matches[0][2]; my $promise = Mojo::Promise->new; Travel::Status::DE::IRIS->new_p( station => $station,