From 801fea28fe765c59d9ee27a8cec876f6fece09d0 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 2 Dec 2023 19:23:48 +0100 Subject: track-via: estimate real-time arrival data --- bin/efa-m | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/efa-m b/bin/efa-m index 479d48d..d4c4ba6 100755 --- a/bin/efa-m +++ b/bin/efa-m @@ -313,7 +313,10 @@ sub show_results { } elsif ($track_via) { my $via = first { $_->name =~ m{$filter_via}io } $d->route_post; - $dtime .= ' → ' . $via->arr->strftime('%H:%M'); + $dtime + .= ' → ' + . $via->arr->clone->add( minutes => $d->delay // 0 ) + ->strftime('%H:%M'); } if ( $d->delay ) { $dtime .= ' ' . format_delay( $d->delay, $delay_len ); @@ -633,7 +636,9 @@ use B<-s> I when making requests. =over -=item * B<--track-via> uses real-time data for departure but schedule data for arrival +=item * EFA does not provide real-time data for the routes of requested +departures. Hence, B<--track-via> estimates the arrival time from scheduled +departure and departure delay =back -- cgit v1.2.3