From 598f19db911f0cd1f3755785ade02de7bf51e82e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 28 Mar 2021 11:31:25 +0200 Subject: EFA: Add proximity_search (useProxFootSearch) option --- lib/Travel/Status/DE/EFA.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/Travel/Status/DE/EFA.pm') 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, B and B accessors in Travel::Status::DE::EFA::Result(3pm). +=item B => B<0>|B<1> + +If true: Show departures for stops in the proximity of the requested place +as well. + =item B => I Request timeout, the argument is passed on to LWP::UserAgent(3pm). -- cgit v1.2.3