diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-03-24 14:00:12 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-03-24 14:00:12 +0100 |
commit | b85f394224f151809a425e727f6e55bea22816ce (patch) | |
tree | d0abccbbae83a7fdd98a2435a31df3891686d0d1 /lib/Travel/Routing/DE | |
parent | e7867caf2ef6877dc513f438a6a1fe7d4b7fc5c5 (diff) |
Add --max-change / max_change options
Diffstat (limited to 'lib/Travel/Routing/DE')
-rw-r--r-- | lib/Travel/Routing/DE/HAFAS.pm | 6 |
1 files changed, 5 insertions, 1 deletions
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<max_change> => I<count> + +Request connections with no more than I<count> changeovers. + =item B<service> => I<service> Request results from I<service>, defaults to "DB". |