summaryrefslogtreecommitdiff
path: root/bin/hafas
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-11-03 17:45:02 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-11-03 17:45:02 +0100
commit1ee25e2950d1898d22ef2d6e14d8543a1cd614c2 (patch)
tree73a7bff0cc2afc40b6835a7ad17e98c146a328d4 /bin/hafas
parent668a0601097750e72c2ac1e61ffc050425d616b1 (diff)
shorten 'walk' lines, arr/dep time and place are not relevant here
Diffstat (limited to 'bin/hafas')
-rwxr-xr-xbin/hafas15
1 files changed, 2 insertions, 13 deletions
diff --git a/bin/hafas b/bin/hafas
index 3fd7738..a6f2cc0 100755
--- a/bin/hafas
+++ b/bin/hafas
@@ -287,19 +287,8 @@ for my $res ( @{ $hafas->{results} } ) {
);
}
elsif ( $sec->type eq 'WALK' ) {
- printf(
- "%-5s %-${have_delay}s ab %s\n",
- $sec->dep_datetime->strftime('%H:%M'),
- q{}, $sec->dep_loc->name
- );
- printf( "%10s%${have_delay}s Fußweg %dm (%02d:%02d)\n",
- q{}, q{}, $sec->distance,
- $sec->duration->in_units( 'hours', 'minutes' ) );
- printf(
- "%-5s %-${have_delay}s an %s\n",
- $sec->arr_datetime->strftime('%H:%M'),
- q{}, $sec->arr_loc->name
- );
+ printf( "# Walk %dm (approx. %d minutes)\n",
+ $sec->distance, $sec->duration->in_units('minutes') );
}
else {
printf("\n???\n");