From 72bc43a9e4e010020e94a701648ba51dc8d580ed Mon Sep 17 00:00:00 2001 From: Derf Null Date: Mon, 10 Apr 2023 21:43:11 +0200 Subject: geoSearch, locationSearch: respect #results parameter --- lib/Travel/Status/DE/HAFAS.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm index 23aba6e..8da83eb 100644 --- a/lib/Travel/Status/DE/HAFAS.pm +++ b/lib/Travel/Status/DE/HAFAS.pm @@ -270,7 +270,7 @@ sub new { ], getPOIs => \0, getStops => \1, - maxLoc => 10, + maxLoc => $conf{results} // 30, } } ], @@ -289,7 +289,7 @@ sub new { type => 'S', name => $conf{locationSearch}, }, - maxLoc => 10, + maxLoc => $conf{results} // 30, field => 'S', }, } -- cgit v1.2.3