summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/IRIS/Stations.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-11-07 20:40:23 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-11-07 20:40:23 +0100
commit297771540278864f464e43f78d7586c429b97486 (patch)
tree9134cf722a700424afb921e6c85c0dcf00bdb6de /lib/Travel/Status/DE/IRIS/Stations.pm
parentf5aae38e67e0f855d0e56ead3df2f892f105229c (diff)
Stations: Fix get_station_by_location num_matches parameter
Diffstat (limited to 'lib/Travel/Status/DE/IRIS/Stations.pm')
-rw-r--r--lib/Travel/Status/DE/IRIS/Stations.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/IRIS/Stations.pm b/lib/Travel/Status/DE/IRIS/Stations.pm
index 350e9a5..22625f3 100644
--- a/lib/Travel/Status/DE/IRIS/Stations.pm
+++ b/lib/Travel/Status/DE/IRIS/Stations.pm
@@ -8519,7 +8519,7 @@ sub get_station_by_location {
my @station_map = pairwise { [ $a, $b ] } @candidates, @distances;
@station_map = sort { $a->[1] <=> $b->[1] } @station_map;
- splice( @station_map, 10 );
+ splice( @station_map, $num_matches );
return @station_map;
}