From 52c8c8f4195039702cb9ca43b0a9289b64652910 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 19 Sep 2025 20:15:19 +0200 Subject: Location: populate is_additional from stop remark --- lib/Travel/Status/DE/DBRIS/Location.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/Travel/Status/DE/DBRIS/Location.pm b/lib/Travel/Status/DE/DBRIS/Location.pm index 580291f..7d59fc2 100644 --- a/lib/Travel/Status/DE/DBRIS/Location.pm +++ b/lib/Travel/Status/DE/DBRIS/Location.pm @@ -97,6 +97,9 @@ sub new { if ( $message->{type} and $message->{type} eq 'HALT_AUSFALL' ) { $ref->{is_cancelled} = 1; } + elsif ( $message->{text} and $message->{text} eq 'Zusatzhalt' ) { + $ref->{is_additional} = 1; + } push( @{ $ref->{messages} }, $message ); } -- cgit v1.2.3