summaryrefslogtreecommitdiff
path: root/bin/efa-m
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-10-13 10:46:59 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-10-13 10:46:59 +0200
commit6a0dead77f11a4cdd880725aa569e03723c9d3ad (patch)
treeb6d46235b8406dfb55180e0877ff4cb909b57a9a /bin/efa-m
parentb8a15268fa0a14867c8056375843f54659d74aee (diff)
add stopfinder support
Diffstat (limited to 'bin/efa-m')
-rwxr-xr-xbin/efa-m7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/efa-m b/bin/efa-m
index 2dfca8d..df9390b 100755
--- a/bin/efa-m
+++ b/bin/efa-m
@@ -325,6 +325,13 @@ sub show_coord {
}
}
+sub show_stopfinder {
+ my $max_len = max map { length( $_->full_name ) } $efa->results;
+ for my $stop ( $efa->results ) {
+ printf( "%-${max_len}s %s\n", $stop->full_name, $stop->id );
+ }
+}
+
sub show_stopseq {
my $trip = $efa->result;