From b85f394224f151809a425e727f6e55bea22816ce Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 24 Mar 2024 14:00:12 +0100 Subject: Add --max-change / max_change options --- lib/Travel/Routing/DE/HAFAS.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/Travel/Routing') diff --git a/lib/Travel/Routing/DE/HAFAS.pm b/lib/Travel/Routing/DE/HAFAS.pm index 0b535f2..a2ea78c 100644 --- a/lib/Travel/Routing/DE/HAFAS.pm +++ b/lib/Travel/Routing/DE/HAFAS.pm @@ -253,7 +253,7 @@ sub new { depLocL => [ { lid => $from_lid } ], arrLocL => [ { lid => $to_lid } ], numF => 6, - maxChg => undef, + maxChg => $conf{max_change}, minChgTime => undef, outFrwd => $outFrwd, viaLocL => undef, @@ -749,6 +749,10 @@ values. Providing an unsupported or invalid value may lead to garbage output. Passed on to C<< LWP::UserAgent->new >>. Defaults to C<< { timeout => 10 } >>, pass an empty hashref to call the LWP::UserAgent constructor without arguments. +=item B => I + +Request connections with no more than I changeovers. + =item B => I Request results from I, defaults to "DB". -- cgit v1.2.3