From 3dd1b3a53d48c5b1c76418fe37823ea97e58ccde Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 22 Sep 2024 15:08:23 +0200 Subject: Stop: Use place / name / full_name rather than just name_suf and name --- bin/efa-m | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bin/efa-m') diff --git a/bin/efa-m b/bin/efa-m index 36c23ea..7530326 100755 --- a/bin/efa-m +++ b/bin/efa-m @@ -172,7 +172,7 @@ sub format_route { $output .= sprintf( " %5s %40s %s\n", $stop->arr->strftime('%H:%M'), - $stop->name, $stop->platform, + $stop->full_name, $stop->platform, ); } else { @@ -180,7 +180,7 @@ sub format_route { "%5s → %5s %40s %s\n", $stop->arr->strftime('%H:%M'), $stop->dep->strftime('%H:%M'), - $stop->name, $stop->platform, + $stop->full_name, $stop->platform, ); } } @@ -188,19 +188,19 @@ sub format_route { $output .= sprintf( "%5s %40s %s\n", $stop->arr->strftime('%H:%M'), - $stop->name, $stop->platform, + $stop->full_name, $stop->platform, ); } elsif ( defined $stop->dep ) { $output .= sprintf( " %5s %40s %s\n", $stop->dep->strftime('%H:%M'), - $stop->name, $stop->platform, + $stop->full_name, $stop->platform, ); } - elsif ( $stop->name ) { + elsif ( $stop->full_name ) { $output .= sprintf( " %40s %s\n", - $stop->name, $stop->platform, ); + $stop->full_name, $stop->platform, ); } else { $output .= "?\n"; @@ -346,7 +346,7 @@ sub show_results { if ( $edata{route} ) { $output_line[3] - = join( q{ }, map { $_->name_suf } $d->route_interesting ); + = join( q{ }, map { $_->name } $d->route_interesting ); } elsif ( $d->occupancy ) { if ( $d->occupancy eq 'MANY_SEATS' ) { -- cgit v1.2.3