summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'lib/DBInfoscreen/Controller')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index f8426c5..c2aa613 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -412,8 +412,6 @@ sub render_train {
)
];
- $departure->{trip_id} = $self->hafas->get_tripid($result);
-
if ( $departure->{wr_link}
and
not $self->wagonorder->is_available( $result, $departure->{wr_link} ) )
@@ -421,9 +419,11 @@ sub render_train {
$departure->{wr_link} = undef;
}
- my ( $route_ts, $route_info )
+ my ( $route_ts, $route_info, $trainsearch )
= $self->hafas->get_route_timestamps( train => $result );
+ $departure->{trip_id} = $trainsearch->{trip_id};
+
# If a train number changes on the way, IRIS routes are incomplete,
# whereas HAFAS data has all stops -> merge HAFAS stops into IRIS
# stops. This is a rare case, one point where it can be observed is