diff --git a/bin/efa b/bin/efa index ed902df30b46e4e7d81ecf8555b359d2ea65fc69..3f512a229fc43c65a25fb81d21cb871128cdb53e 100755 --- a/bin/efa +++ b/bin/efa @@ -23,6 +23,7 @@ my ($time, $time_depart, $time_arrive); my $date; my $restrict; my $prefer; +my $proximity; my $debug = 0; my $ignore_info = 'Fahrradmitnahme'; my ($i, $j, $con, $part); @@ -121,6 +122,7 @@ GetOptions( 'ignore-info=s' => \$ignore_info, 'post=s' => \%post, 'prefer=s' => \$prefer, + 'proximity' => \$proximity, 'restrict=s' => \$restrict, 'time=s' => \$time, 'to=s{2}' => \@to, @@ -172,6 +174,10 @@ if ($prefer) { } } +if ($proximity) { + $post{useProxFootSearch} = 1; +} + if ($restrict) { given ($restrict) { when('local') { $post{lineRestriction} = 403 } @@ -300,6 +306,10 @@ Prefer connections with less walking (at interchanges) =back +=item B<--proximity> + +Take stops close to the stop/start into account and possibly use them instead + =item B<--restrict> I Only accept connections using trains of type I, where I may be: diff --git a/provides/zsh/completions/_efa b/provides/zsh/completions/_efa index b169ace446c1b0cdb5ab55e78c594c23b24a6e93..da1ce0be359127708fce9f8f7f954b690c81db47 100644 --- a/provides/zsh/completions/_efa +++ b/provides/zsh/completions/_efa @@ -11,6 +11,7 @@ arguments=( '(--arrive --time)--depart:time' '--date:date' '--prefer:type:(speed nowait nowalk)' + '--proximity' '--restrict:type:(local ic ice)' '--ignore-info:regex' '*--post:POST key=value'