From 065e00fd680ca9bedf533fa09ace5dda7b59b5e9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 19 May 2009 21:12:45 +0200 Subject: efa: Added --proximity ("Berücksichtigung von Nachbarhaltestellen bei Start und Ziel") MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/efa | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bin') diff --git a/bin/efa b/bin/efa index ed902df..3f512a2 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: -- cgit v1.2.3