summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-09-28 14:55:51 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-09-28 14:55:51 +0200
commite691bc75740114a4c39f5250e104f276bae99926 (patch)
tree7b3acc142583f04158e06aa9340c2e0c839364e2 /bin
parent15646148c4527f003c40b2936b38030dbe5093cc (diff)
journey id: use origin stop ID if available
Diffstat (limited to 'bin')
-rwxr-xr-xbin/efa-m4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/efa-m b/bin/efa-m
index 5ab06e1..417daeb 100755
--- a/bin/efa-m
+++ b/bin/efa-m
@@ -426,7 +426,9 @@ sub show_results {
if ($show_jid) {
$output_line[2] .= sprintf( ' %s@%d(%s)%d',
$d->stateless =~ s{ }{}gr,
- $d->stop_id, $d->sched_datetime->strftime('%Y%m%d'), $d->key );
+ scalar $d->route_pre ? ( $d->route_pre )[0]->id : $d->stop_id,
+ $d->sched_datetime->strftime('%Y%m%d'),
+ $d->key );
}
if ( $edata{route} ) {