diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2023-09-05 18:12:18 +0200 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2023-09-05 18:12:18 +0200 |
commit | 9002b2ae6761ed41ae3b09b0b5de142d7bcfe0db (patch) | |
tree | ff6f9fecadc3f1317667d79ffdeabd29e16d54d6 /lib/DBInfoscreen/Controller/Map.pm | |
parent | 521b3e3befa49548d2d5a57a17bc7cfe207a85b4 (diff) |
map: work around ::HAFAS::Journey route_start bug
Diffstat (limited to 'lib/DBInfoscreen/Controller/Map.pm')
-rw-r--r-- | lib/DBInfoscreen/Controller/Map.pm | 4 |
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 => { |