diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-03-28 11:31:25 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-03-28 11:31:25 +0200 |
commit | 598f19db911f0cd1f3755785ade02de7bf51e82e (patch) | |
tree | 49345992daa1010874728d64ae9324fb608bb06b /lib/Travel/Status | |
parent | d00107779362bda0cb7df7fdd032d88e4d993823 (diff) |
EFA: Add proximity_search (useProxFootSearch) option
Diffstat (limited to 'lib/Travel/Status')
-rw-r--r-- | lib/Travel/Status/DE/EFA.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/EFA.pm b/lib/Travel/Status/DE/EFA.pm index 32f533f..25d3e15 100644 --- a/lib/Travel/Status/DE/EFA.pm +++ b/lib/Travel/Status/DE/EFA.pm @@ -100,7 +100,7 @@ sub new { submitButton => 'anfordern', typeInfo_dm => 'invalid', type_dm => $opt{type} // 'stop', - useProxFootSearch => '0', + useProxFootSearch => $opt{proximity_search} ? '1' : '0', useRealtime => '1', }, developer_mode => $opt{developer_mode}, @@ -727,6 +727,11 @@ If true: Request full routes for all departures from the backend. This enables the B<route_pre>, B<route_post> and B<route_interesting> accessors in Travel::Status::DE::EFA::Result(3pm). +=item B<proximity_search> => B<0>|B<1> + +If true: Show departures for stops in the proximity of the requested place +as well. + =item B<timeout> => I<seconds> Request timeout, the argument is passed on to LWP::UserAgent(3pm). |