summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/hafas8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/hafas b/bin/hafas
index 2a3aed5..14cbeba 100755
--- a/bin/hafas
+++ b/bin/hafas
@@ -434,6 +434,14 @@ for my $res ( $hafas->connections ) {
$sec->duration->in_units('minutes') == 1 ? q{} : 's'
);
}
+ elsif ( $sec->type eq 'TRSF' ) {
+ printf(
+"${output_bold}Transfer %.1fkm${output_reset} with local transit (approx. %d minute%s)",
+ $sec->distance / 1000,
+ $sec->duration->in_units('minutes'),
+ $sec->duration->in_units('minutes') == 1 ? q{} : 's'
+ );
+ }
else {
printf("\n???\n");
}