From fc95f2a3ceef03f076ee268d71ce11d5765a6c37 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 25 Mar 2024 11:52:14 +0100 Subject: add --change-time / min_change_time options --- lib/Travel/Routing/DE/HAFAS.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Travel/Routing/DE/HAFAS.pm b/lib/Travel/Routing/DE/HAFAS.pm index 8ef5959..1ced8e8 100644 --- a/lib/Travel/Routing/DE/HAFAS.pm +++ b/lib/Travel/Routing/DE/HAFAS.pm @@ -243,7 +243,7 @@ sub new { arrLocL => [ $self->stop_to_hafas( $self->{to_stop} ) ], numF => 6, maxChg => $conf{max_change}, - minChgTime => undef, + minChgTime => $conf{min_change_time}, outFrwd => $outFrwd, viaLocL => @via_locs ? [ map { { loc => $_ } } @via_locs ] @@ -760,6 +760,12 @@ pass an empty hashref to call the LWP::UserAgent constructor without arguments. Request connections with no more than I changeovers. +=item B => I + +Request connections with scheduled changeover durations of at least I. +Note that this does not account for real-time data: the backend may return +delayed connections that violate the specified changeover duration. + =item B => I Request results from I, defaults to "DB". -- cgit v1.2.3