Loading Build.PL +1 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ Module::Build->new( 'Travel::Status::DE::HAFAS::Journey' => '5.01', 'Travel::Status::DE::HAFAS::Location' => '5.00', 'Travel::Status::DE::HAFAS::Message' => '4.19', 'Travel::Status::DE::HAFAS::Product' => '5.05', }, script_files => 'bin/', sign => 1, Loading lib/Travel/Routing/DE/HAFAS.pm +11 −1 Original line number Diff line number Diff line Loading @@ -536,8 +536,17 @@ sub check_mgate { sub parse_trips { my ($self) = @_; my $common = $self->{raw_json}{svcResL}[0]{res}{common}; my @locL = map { Travel::Status::DE::HAFAS::Location->new( loc => $_ ) } @{ $self->{raw_json}{svcResL}[0]{res}{common}{locL} // [] }; @{ $common->{locL} // [] }; my @prodL = map { Travel::Status::DE::HAFAS::Product->new( common => $common, product => $_ ) } @{ $common->{prodL} // [] }; my @conL = @{ $self->{raw_json}{svcResL}[0]{res}{outConL} // [] }; for my $con (@conL) { Loading @@ -546,6 +555,7 @@ sub parse_trips { Travel::Routing::DE::HAFAS::Connection->new( common => $self->{raw_json}{svcResL}[0]{res}{common}, locL => \@locL, prodL => \@prodL, connection => $con, hafas => $self, ) Loading lib/Travel/Routing/DE/HAFAS/Connection.pm +6 −4 Original line number Diff line number Diff line Loading @@ -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} // [] }; Loading Loading @@ -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, ) Loading Loading @@ -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, Loading lib/Travel/Routing/DE/HAFAS/Connection/Section.pm +6 −4 Original line number Diff line number Diff line Loading @@ -27,7 +27,8 @@ sub new { my $hafas = $opt{hafas}; my $sec = $opt{sec}; my $date = $opt{date}; 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} // [] }; Loading Loading @@ -86,8 +87,8 @@ sub new { rt_arr => $rt_arr, dep => $rt_dep // $sched_dep, arr => $rt_arr // $sched_arr, dep_loc => $locs->[ $sec->{dep}{locX} ], arr_loc => $locs->[ $sec->{arr}{locX} ], dep_loc => $locL->[ $sec->{dep}{locX} ], arr_loc => $locL->[ $sec->{arr}{locX} ], dep_platform => $sec->{dep}{dplatfR} // $sec->{dep}{dPlatfS}, arr_platform => $sec->{arr}{aplatfR} // $sec->{arr}{aPlatfS}, dep_cancelled => $sec->{dep}{dCncl}, Loading @@ -109,7 +110,8 @@ sub new { $ref->{journey} = Travel::Status::DE::HAFAS::Journey->new( common => $opt{common}, date => $date, locL => $locs, locL => $locL, prodL => $prodL, journey => $sec->{jny}, hafas => $hafas, ); Loading Loading
Build.PL +1 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ Module::Build->new( 'Travel::Status::DE::HAFAS::Journey' => '5.01', 'Travel::Status::DE::HAFAS::Location' => '5.00', 'Travel::Status::DE::HAFAS::Message' => '4.19', 'Travel::Status::DE::HAFAS::Product' => '5.05', }, script_files => 'bin/', sign => 1, Loading
lib/Travel/Routing/DE/HAFAS.pm +11 −1 Original line number Diff line number Diff line Loading @@ -536,8 +536,17 @@ sub check_mgate { sub parse_trips { my ($self) = @_; my $common = $self->{raw_json}{svcResL}[0]{res}{common}; my @locL = map { Travel::Status::DE::HAFAS::Location->new( loc => $_ ) } @{ $self->{raw_json}{svcResL}[0]{res}{common}{locL} // [] }; @{ $common->{locL} // [] }; my @prodL = map { Travel::Status::DE::HAFAS::Product->new( common => $common, product => $_ ) } @{ $common->{prodL} // [] }; my @conL = @{ $self->{raw_json}{svcResL}[0]{res}{outConL} // [] }; for my $con (@conL) { Loading @@ -546,6 +555,7 @@ sub parse_trips { Travel::Routing::DE::HAFAS::Connection->new( common => $self->{raw_json}{svcResL}[0]{res}{common}, locL => \@locL, prodL => \@prodL, connection => $con, hafas => $self, ) Loading
lib/Travel/Routing/DE/HAFAS/Connection.pm +6 −4 Original line number Diff line number Diff line Loading @@ -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} // [] }; Loading Loading @@ -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, ) Loading Loading @@ -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, Loading
lib/Travel/Routing/DE/HAFAS/Connection/Section.pm +6 −4 Original line number Diff line number Diff line Loading @@ -27,7 +27,8 @@ sub new { my $hafas = $opt{hafas}; my $sec = $opt{sec}; my $date = $opt{date}; 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} // [] }; Loading Loading @@ -86,8 +87,8 @@ sub new { rt_arr => $rt_arr, dep => $rt_dep // $sched_dep, arr => $rt_arr // $sched_arr, dep_loc => $locs->[ $sec->{dep}{locX} ], arr_loc => $locs->[ $sec->{arr}{locX} ], dep_loc => $locL->[ $sec->{dep}{locX} ], arr_loc => $locL->[ $sec->{arr}{locX} ], dep_platform => $sec->{dep}{dplatfR} // $sec->{dep}{dPlatfS}, arr_platform => $sec->{arr}{aplatfR} // $sec->{arr}{aPlatfS}, dep_cancelled => $sec->{dep}{dCncl}, Loading @@ -109,7 +110,8 @@ sub new { $ref->{journey} = Travel::Status::DE::HAFAS::Journey->new( common => $opt{common}, date => $date, locL => $locs, locL => $locL, prodL => $prodL, journey => $sec->{jny}, hafas => $hafas, ); Loading