summaryrefslogtreecommitdiff
path: root/bin/hafas
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-04-02 17:20:08 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-04-02 17:20:08 +0200
commitb7af35c24679ff46c92e96078d2e4d1930cb8b15 (patch)
tree8b862e822a82c421bd8538c4f7fb2bb8e001a684 /bin/hafas
parentf40128dedfd431e91960e1271f1a677369941058 (diff)
Section: add TRSF type (unspecified local transit)
Diffstat (limited to 'bin/hafas')
-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");
}