diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-09-22 10:55:57 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-09-22 10:56:10 +0200 |
commit | 9164a2f4775bc759563981582a61c99a96a89b3d (patch) | |
tree | b0329842e072fa2a068091f55d6d24b37412e531 /lib/Travel/Status/DE/EFA.pm | |
parent | a8eb30553b5ce27ce9217bb90dca773cf1d30bf8 (diff) |
restore -Om (replaces ->info with ->hints)
Diffstat (limited to 'lib/Travel/Status/DE/EFA.pm')
-rw-r--r-- | lib/Travel/Status/DE/EFA.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/EFA.pm b/lib/Travel/Status/DE/EFA.pm index ada0ea3..cfa47ce 100644 --- a/lib/Travel/Status/DE/EFA.pm +++ b/lib/Travel/Status/DE/EFA.pm @@ -501,6 +501,9 @@ sub parse_departure { $departure->{stopID} ); } + my @hints + = map { $_->{content} } @{ $departure->{servingLine}{hints} // [] }; + return Travel::Status::DE::EFA::Departure->new( rt_datetime => $real_dt, platform => $departure->{platform}, @@ -518,6 +521,7 @@ sub parse_departure { sched_datetime => $sched_dt, type => $departure->{servingLine}{name}, mot => $departure->{servingLine}{motType}, + hints => \@hints, prev_route => $prev_route, next_route => $next_route, ); |