summaryrefslogtreecommitdiff
path: root/lib/Travel/Routing/DE/HAFAS.pm
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-11-19 12:59:18 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-11-19 12:59:18 +0100
commit2b2fcbdee810b59ecfec85929f134c07f5aa40c8 (patch)
tree343bc91ac07641f9cf64b1aec9b5d3dcb7026b04 /lib/Travel/Routing/DE/HAFAS.pm
parent1c82ee17d2fa06a79fe3b96883d603408b4fe74a (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.pm3
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'),