From 3752aa0fb16aaee7b8b55f5bdac42f21b3d0ee43 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Thu, 26 Sep 2024 05:09:21 +0200 Subject: Trip->route: return Stop instances --- bin/efa-m | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'bin') 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 ); } } -- cgit v1.2.3