From 41ada230f0350bf798115834c859808447ab46fb Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 11 Jun 2024 20:26:53 +0200 Subject: Connection: skip walking sections without a duration --- lib/Travel/Routing/DE/HAFAS/Connection.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Travel/Routing/DE/HAFAS/Connection.pm b/lib/Travel/Routing/DE/HAFAS/Connection.pm index e70dd26..dacecaf 100644 --- a/lib/Travel/Routing/DE/HAFAS/Connection.pm +++ b/lib/Travel/Routing/DE/HAFAS/Connection.pm @@ -89,6 +89,9 @@ sub new { my @sections; for my $sec (@secL) { + if ( $sec->{type} eq 'WALK' and not $sec->{gis}{durS} ) { + next; + } push( @sections, Travel::Routing::DE::HAFAS::Connection::Section->new( -- cgit v1.2.3