From b7af35c24679ff46c92e96078d2e4d1930cb8b15 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 2 Apr 2024 17:20:08 +0200 Subject: Section: add TRSF type (unspecified local transit) --- bin/hafas | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bin/hafas') 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"); } -- cgit v1.2.3