summaryrefslogtreecommitdiff
path: root/bin/efa-m
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-09-26 05:09:21 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-09-26 05:09:21 +0200
commit3752aa0fb16aaee7b8b55f5bdac42f21b3d0ee43 (patch)
tree0182d89ad528e25b743fadd7285cee4e24c7863a /bin/efa-m
parent385b25b93a3f10a4044df9fc73027b8ae70dbc8a (diff)
Trip->route: return Stop instances
Diffstat (limited to 'bin/efa-m')
-rwxr-xr-xbin/efa-m13
1 files changed, 7 insertions, 6 deletions
diff --git a/bin/efa-m b/bin/efa-m
index 9ddb70b..59c7c3b 100755
--- a/bin/efa-m
+++ b/bin/efa-m
@@ -266,14 +266,15 @@ sub show_stopseq {
$trip->dest_name );
for my $stop ( $trip->route ) {
- printf( "%s → %s %s\n",
- $stop->{sched_arr}
- ? ( $stop->{rt_arr} // $stop->{sched_arr} )->strftime('%H:%M')
+ printf(
+ "%s → %s %s (%s) %s\n",
+ $stop->arr ? $stop->arr->strftime('%H:%M')
: q{ },
- $stop->{sched_dep}
- ? ( $stop->{rt_dep} // $stop->{sched_dep} )->strftime('%H:%M')
+ $stop->dep ? $stop->dep->strftime('%H:%M')
: q{ },
- $stop->{name_full},
+ $stop->full_name,
+ $stop->niveau,
+ $stop->platform
);
}
}