diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-11-19 12:59:18 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-11-19 12:59:18 +0100 |
commit | 2b2fcbdee810b59ecfec85929f134c07f5aa40c8 (patch) | |
tree | 343bc91ac07641f9cf64b1aec9b5d3dcb7026b04 /lib/Travel/Routing/DE/HAFAS.pm | |
parent | 1c82ee17d2fa06a79fe3b96883d603408b4fe74a (diff) |
Use Travel::Status::DE::HAFAS::Journey for journey data
Diffstat (limited to 'lib/Travel/Routing/DE/HAFAS.pm')
-rw-r--r-- | lib/Travel/Routing/DE/HAFAS.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Travel/Routing/DE/HAFAS.pm b/lib/Travel/Routing/DE/HAFAS.pm index 4890c3c..ec5689b 100644 --- a/lib/Travel/Routing/DE/HAFAS.pm +++ b/lib/Travel/Routing/DE/HAFAS.pm @@ -647,7 +647,8 @@ Travel::Routing::DE::HAFAS - Interface to HAFAS itinerary services for my $sec ($con->sections) { if ( $sec->type eq 'JNY' ) { printf("%s -> %s\n%s ab %s\n%s an %s\n\n", - $sec->name, $sec->direction, + $sec->journey->name, + $sec->journey->direction, $sec->dep->strftime('%H:%M'), $sec->dep_loc->name, $sec->arr->strftime('%H:%M'), |