From 45f747961e14c5f63e895cdda97a830c5837a118 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 16 Nov 2019 14:50:07 +0100 Subject: map: add station names to points --- lib/Travelynx/Controller/Traveling.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Travelynx') diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index a3d5e67..3c4a8d7 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -431,7 +431,7 @@ sub map_history { push( @stations, uniq map { $_->{from_name} } @journeys ); @stations = uniq @stations; my @station_coordinates - = map { $location{$_} } grep { exists $location{$_} } @stations; + = map { [ $location{$_}, $_ ] } grep { exists $location{$_} } @stations; my @uniq_by_route = uniq_by { join( '|', map { $_->[0] } @{ $_->{route} } ) -- cgit v1.2.3