summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen
diff options
context:
space:
mode:
Diffstat (limited to 'lib/DBInfoscreen')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm14
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index dbae28a..14ac3be 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -1532,10 +1532,16 @@ sub handle_efa {
departure => $result->rt_datetime
? $result->rt_datetime->strftime('%H:%M')
: undef,
- train => $result->line,
- train_type => q{},
- train_line => $result->line,
- train_no => $result->train_no,
+ train => $result->line,
+ train_type => q{},
+ train_line => $result->line,
+ train_no => $result->train_no,
+ journey_id => sprintf( '%s@%d(%s)%d',
+ $result->stateless,
+ scalar $result->route_pre ? ( $result->route_pre )[0]->id
+ : $result->stop_id,
+ $result->sched_datetime->strftime('%Y%m%d'),
+ $result->key ),
via => [ map { $_->name } $result->route_interesting ],
origin => $result->origin,
destination => $result->destination,