diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-01-10 19:22:33 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-01-10 19:22:33 +0100 |
commit | 5e3651a996ac68cb664e42103a15922d4168e0db (patch) | |
tree | 8281f94b8b6a0b12f6c926cf98470eb79bad75c7 | |
parent | af6d1a7b6abb6f9322faa11d3f03d3fb963239fd (diff) |
HAFAS: Use VRN as default backend2.9.16
Notable, this retores data augmentation for IRIS checkins
-rw-r--r-- | lib/Travelynx/Helper/HAFAS.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Travelynx/Helper/HAFAS.pm b/lib/Travelynx/Helper/HAFAS.pm index a8ab395..207fadb 100644 --- a/lib/Travelynx/Helper/HAFAS.pm +++ b/lib/Travelynx/Helper/HAFAS.pm @@ -97,7 +97,7 @@ sub get_departures_p { : DateTime->now( time_zone => 'Europe/Berlin' ) )->subtract( minutes => $opt{lookbehind} ); return Travel::Status::DE::HAFAS->new_p( - service => $opt{service}, + service => $opt{service} // 'VRN', station => $opt{eva}, datetime => $when, lookahead => $opt{lookahead} + $opt{lookbehind}, @@ -112,7 +112,7 @@ sub search_location_p { my ( $self, %opt ) = @_; return Travel::Status::DE::HAFAS->new_p( - service => $opt{service}, + service => $opt{service} // 'VRN', locationSearch => $opt{query}, cache => $self->{realtime_cache}, promise => 'Mojo::Promise', @@ -130,7 +130,7 @@ sub get_tripid_p { $train_desc =~ s{^- }{}; Travel::Status::DE::HAFAS->new_p( - service => $opt{service}, + service => $opt{service} // 'VRN', journeyMatch => $train_desc, datetime => $train->start, cache => $self->{realtime_cache}, @@ -182,7 +182,7 @@ sub get_journey_p { my $now = DateTime->now( time_zone => 'Europe/Berlin' ); Travel::Status::DE::HAFAS->new_p( - service => $opt{service}, + service => $opt{service} // 'VRN', journey => { id => $opt{trip_id}, }, @@ -223,7 +223,7 @@ sub get_route_p { my $now = DateTime->now( time_zone => 'Europe/Berlin' ); Travel::Status::DE::HAFAS->new_p( - service => $opt{service}, + service => $opt{service} // 'VRN', journey => { id => $opt{trip_id}, |