diff options
Diffstat (limited to 'lib/Travel/Status/DE/HAFAS')
-rw-r--r-- | lib/Travel/Status/DE/HAFAS/Journey.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm index b48853b..2bda87e 100644 --- a/lib/Travel/Status/DE/HAFAS/Journey.pm +++ b/lib/Travel/Status/DE/HAFAS/Journey.pm @@ -185,9 +185,11 @@ sub new { if ( $journey->{stbStop} ) { if ( $hafas->{arrivals} ) { $ref->{origin} = $ref->{route_end}; + $ref->{is_cancelled} ||= $journey->{stbStop}{aCncl}; } else { $ref->{destination} = $ref->{route_end}; + $ref->{is_cancelled} ||= $journey->{stbStop}{dCncl}; } } else { |