summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Controller
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2023-09-05 18:12:18 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2023-09-05 18:12:18 +0200
commit9002b2ae6761ed41ae3b09b0b5de142d7bcfe0db (patch)
treeff6f9fecadc3f1317667d79ffdeabd29e16d54d6 /lib/DBInfoscreen/Controller
parent521b3e3befa49548d2d5a57a17bc7cfe207a85b4 (diff)
map: work around ::HAFAS::Journey route_start bug
Diffstat (limited to 'lib/DBInfoscreen/Controller')
-rw-r--r--lib/DBInfoscreen/Controller/Map.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/DBInfoscreen/Controller/Map.pm b/lib/DBInfoscreen/Controller/Map.pm
index 825a626..507aa43 100644
--- a/lib/DBInfoscreen/Controller/Map.pm
+++ b/lib/DBInfoscreen/Controller/Map.pm
@@ -406,7 +406,7 @@ sub route {
ajax_polyline => join( '|',
map { join( ';', @{$_} ) } @{ $train_pos->{positions} } ),
origin => {
- name => $journey->route_start,
+ name => ( $journey->route )[0]->{name},
ts => ( $journey->route )[0]->{dep},
},
destination => {
@@ -478,7 +478,7 @@ sub ajax_route {
ajax_polyline => join( '|',
map { join( ';', @{$_} ) } @{ $train_pos->{positions} } ),
origin => {
- name => $journey->route_start,
+ name => ( $journey->route )[0]->{name},
ts => ( $journey->route )[0]->{dep},
},
destination => {