summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller/Traveling.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-11-16 14:50:07 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-11-16 14:50:07 +0100
commit45f747961e14c5f63e895cdda97a830c5837a118 (patch)
treecf5e3c76a6f848d8d600ce190cf8ceaf4fa52f39 /lib/Travelynx/Controller/Traveling.pm
parent0bfb71d78d1a7996fe0fb32af063ccfdc6ceea15 (diff)
map: add station names to points
Diffstat (limited to 'lib/Travelynx/Controller/Traveling.pm')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm2
1 files changed, 1 insertions, 1 deletions
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} } )