From 444dad0d33aa2d0ca9750bbac49268489854ba4d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 2 Mar 2014 19:20:31 +0100 Subject: Add option to specify maximum number of connections --- bin/efa | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bin') diff --git a/bin/efa b/bin/efa index d3233c7..dcd2b41 100755 --- a/bin/efa +++ b/bin/efa @@ -155,6 +155,7 @@ GetOptions( help|h ignore-info|I:s max-change|m=i + num-connections|n=i prefer|P=s proximity|p include|i=s @@ -220,6 +221,7 @@ $efa = eval { use_near_stops => $opt->{proximity}, walk_speed => $opt->{'walk-speed'}, max_interchanges => $opt->{'max-change'}, + num_results => $opt->{'num-connections'}, lwp_options => { timeout => $opt->{timeout} }, ); @@ -330,6 +332,11 @@ Display duration, ticket class and price for each route (if available) Print connections with at most I interchanges +=item B<-n>|B<--num-connections> I + +Return up to I connections. If unset, the default of the respective +EFA server is used (usually 4 or 5). + =item B<-P>|B<--prefer> I Prefer connections of I: -- cgit v1.2.3