diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-04-02 17:20:08 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-04-02 17:20:08 +0200 |
commit | b7af35c24679ff46c92e96078d2e4d1930cb8b15 (patch) | |
tree | 8b862e822a82c421bd8538c4f7fb2bb8e001a684 /bin | |
parent | f40128dedfd431e91960e1271f1a677369941058 (diff) |
Section: add TRSF type (unspecified local transit)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/hafas | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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"); } |