diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-08-14 22:18:21 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-08-14 22:18:21 +0200 |
commit | 119f2ea96ac28ffb008f073bf9b3e02840991183 (patch) | |
tree | 1e94c91004144e38fadb68efcc18f5cbd7da2a4e /lib | |
parent | 772b4e3b23b10d3d628c29fac7a4eab6d05d686a (diff) |
IRIS checkout: do not overwrite HAFAS route with IRIS route
The IRIS route may differ from the HAFAS route in case of diversions,
causing travelynx to lose real-time data, coordinates, and polyline when
the follow-up add_route_timestamps call is not made.
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Travelynx.pm | 1 | ||||
-rw-r--r-- | lib/Travelynx/Model/InTransit.pm | 8 |
2 files changed, 0 insertions, 9 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 230441d..36824c3 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -910,7 +910,6 @@ sub startup { uid => $uid, db => $db, train => $train, - route => [ $self->iris->route_diff($train) ] ); $has_arrived diff --git a/lib/Travelynx/Model/InTransit.pm b/lib/Travelynx/Model/InTransit.pm index b9fbabc..4f54c7d 100644 --- a/lib/Travelynx/Model/InTransit.pm +++ b/lib/Travelynx/Model/InTransit.pm @@ -483,13 +483,6 @@ sub set_arrival { my $uid = $opt{uid}; my $db = $opt{db} // $self->{pg}->db; my $train = $opt{train}; - my $route = $opt{route}; - - $route = $self->_merge_old_route( - db => $db, - uid => $uid, - route => $route - ); my $json = JSON->new; @@ -500,7 +493,6 @@ sub set_arrival { arr_platform => $train->platform, sched_arrival => $train->sched_arrival, real_arrival => $train->arrival, - route => $json->encode($route), messages => $json->encode( [ map { [ $_->[0]->epoch, $_->[1] ] } $train->messages ] ) |