diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-06-11 20:26:53 +0200 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-06-11 20:26:53 +0200 |
commit | 41ada230f0350bf798115834c859808447ab46fb (patch) | |
tree | 7f93f1eb8a465d7e43881a63fa507bd0783f6571 | |
parent | abb23bee42bcc64bdc03a6c760b1ae081bf876ce (diff) |
Connection: skip walking sections without a duration
-rw-r--r-- | lib/Travel/Routing/DE/HAFAS/Connection.pm | 3 |
1 files changed, 3 insertions, 0 deletions
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( |