From 293d2d1a4fbfd294f18f9c632703dcae04f28ee4 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 27 Mar 2024 06:40:08 +0100 Subject: Adjust for Travel::Status::DE::HAFAS 6.00 (unreleased) --- lib/Travel/Routing/DE/HAFAS/Connection.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lib/Travel/Routing/DE/HAFAS/Connection.pm') diff --git a/lib/Travel/Routing/DE/HAFAS/Connection.pm b/lib/Travel/Routing/DE/HAFAS/Connection.pm index 51c3a03..95c54f4 100644 --- a/lib/Travel/Routing/DE/HAFAS/Connection.pm +++ b/lib/Travel/Routing/DE/HAFAS/Connection.pm @@ -24,7 +24,8 @@ sub new { my $hafas = $opt{hafas}; my $connection = $opt{connection}; - my $locs = $opt{locL}; + my $locL = $opt{locL}; + my $prodL = $opt{prodL}; # himL may only be present in departure monitor mode my @remL = @{ $opt{common}{remL} // [] }; @@ -83,7 +84,8 @@ sub new { Travel::Routing::DE::HAFAS::Connection::Section->new( common => $opt{common}, date => $date, - locL => $locs, + locL => $locL, + prodL => $prodL, sec => $sec, hafas => $hafas, ) @@ -126,8 +128,8 @@ sub new { // $connection->{dep}{dPlatfS}, arr_platform => $connection->{arr}{aPlatfR} // $connection->{arr}{aPlatfS}, - dep_loc => $locs->[ $connection->{dep}{locX} ], - arr_loc => $locs->[ $connection->{arr}{locX} ], + dep_loc => $locL->[ $connection->{dep}{locX} ], + arr_loc => $locL->[ $connection->{arr}{locX} ], load => $tco, messages => \@messages, sections => \@sections, -- cgit v1.2.3