Loading lib/Travelynx/Helper/HAFAS.pm +5 −5 Original line number Original line Diff line number Diff line Loading @@ -97,7 +97,7 @@ sub get_departures_p { : DateTime->now( time_zone => 'Europe/Berlin' ) : DateTime->now( time_zone => 'Europe/Berlin' ) )->subtract( minutes => $opt{lookbehind} ); )->subtract( minutes => $opt{lookbehind} ); return Travel::Status::DE::HAFAS->new_p( return Travel::Status::DE::HAFAS->new_p( service => $opt{service}, service => $opt{service} // 'VRN', station => $opt{eva}, station => $opt{eva}, datetime => $when, datetime => $when, lookahead => $opt{lookahead} + $opt{lookbehind}, lookahead => $opt{lookahead} + $opt{lookbehind}, Loading @@ -112,7 +112,7 @@ sub search_location_p { my ( $self, %opt ) = @_; my ( $self, %opt ) = @_; return Travel::Status::DE::HAFAS->new_p( return Travel::Status::DE::HAFAS->new_p( service => $opt{service}, service => $opt{service} // 'VRN', locationSearch => $opt{query}, locationSearch => $opt{query}, cache => $self->{realtime_cache}, cache => $self->{realtime_cache}, promise => 'Mojo::Promise', promise => 'Mojo::Promise', Loading @@ -130,7 +130,7 @@ sub get_tripid_p { $train_desc =~ s{^- }{}; $train_desc =~ s{^- }{}; Travel::Status::DE::HAFAS->new_p( Travel::Status::DE::HAFAS->new_p( service => $opt{service}, service => $opt{service} // 'VRN', journeyMatch => $train_desc, journeyMatch => $train_desc, datetime => $train->start, datetime => $train->start, cache => $self->{realtime_cache}, cache => $self->{realtime_cache}, Loading Loading @@ -182,7 +182,7 @@ sub get_journey_p { my $now = DateTime->now( time_zone => 'Europe/Berlin' ); my $now = DateTime->now( time_zone => 'Europe/Berlin' ); Travel::Status::DE::HAFAS->new_p( Travel::Status::DE::HAFAS->new_p( service => $opt{service}, service => $opt{service} // 'VRN', journey => { journey => { id => $opt{trip_id}, id => $opt{trip_id}, }, }, Loading Loading @@ -223,7 +223,7 @@ sub get_route_p { my $now = DateTime->now( time_zone => 'Europe/Berlin' ); my $now = DateTime->now( time_zone => 'Europe/Berlin' ); Travel::Status::DE::HAFAS->new_p( Travel::Status::DE::HAFAS->new_p( service => $opt{service}, service => $opt{service} // 'VRN', journey => { journey => { id => $opt{trip_id}, id => $opt{trip_id}, Loading Loading
lib/Travelynx/Helper/HAFAS.pm +5 −5 Original line number Original line Diff line number Diff line Loading @@ -97,7 +97,7 @@ sub get_departures_p { : DateTime->now( time_zone => 'Europe/Berlin' ) : DateTime->now( time_zone => 'Europe/Berlin' ) )->subtract( minutes => $opt{lookbehind} ); )->subtract( minutes => $opt{lookbehind} ); return Travel::Status::DE::HAFAS->new_p( return Travel::Status::DE::HAFAS->new_p( service => $opt{service}, service => $opt{service} // 'VRN', station => $opt{eva}, station => $opt{eva}, datetime => $when, datetime => $when, lookahead => $opt{lookahead} + $opt{lookbehind}, lookahead => $opt{lookahead} + $opt{lookbehind}, Loading @@ -112,7 +112,7 @@ sub search_location_p { my ( $self, %opt ) = @_; my ( $self, %opt ) = @_; return Travel::Status::DE::HAFAS->new_p( return Travel::Status::DE::HAFAS->new_p( service => $opt{service}, service => $opt{service} // 'VRN', locationSearch => $opt{query}, locationSearch => $opt{query}, cache => $self->{realtime_cache}, cache => $self->{realtime_cache}, promise => 'Mojo::Promise', promise => 'Mojo::Promise', Loading @@ -130,7 +130,7 @@ sub get_tripid_p { $train_desc =~ s{^- }{}; $train_desc =~ s{^- }{}; Travel::Status::DE::HAFAS->new_p( Travel::Status::DE::HAFAS->new_p( service => $opt{service}, service => $opt{service} // 'VRN', journeyMatch => $train_desc, journeyMatch => $train_desc, datetime => $train->start, datetime => $train->start, cache => $self->{realtime_cache}, cache => $self->{realtime_cache}, Loading Loading @@ -182,7 +182,7 @@ sub get_journey_p { my $now = DateTime->now( time_zone => 'Europe/Berlin' ); my $now = DateTime->now( time_zone => 'Europe/Berlin' ); Travel::Status::DE::HAFAS->new_p( Travel::Status::DE::HAFAS->new_p( service => $opt{service}, service => $opt{service} // 'VRN', journey => { journey => { id => $opt{trip_id}, id => $opt{trip_id}, }, }, Loading Loading @@ -223,7 +223,7 @@ sub get_route_p { my $now = DateTime->now( time_zone => 'Europe/Berlin' ); my $now = DateTime->now( time_zone => 'Europe/Berlin' ); Travel::Status::DE::HAFAS->new_p( Travel::Status::DE::HAFAS->new_p( service => $opt{service}, service => $opt{service} // 'VRN', journey => { journey => { id => $opt{trip_id}, id => $opt{trip_id}, Loading