summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-06-11 20:26:53 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-06-11 20:26:53 +0200
commit41ada230f0350bf798115834c859808447ab46fb (patch)
tree7f93f1eb8a465d7e43881a63fa507bd0783f6571 /lib
parentabb23bee42bcc64bdc03a6c760b1ae081bf876ce (diff)
Connection: skip walking sections without a duration
Diffstat (limited to 'lib')
-rw-r--r--lib/Travel/Routing/DE/HAFAS/Connection.pm3
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(