summaryrefslogtreecommitdiff
path: root/lib/Travel/Routing/DE
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-04-02 17:20:08 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-04-02 17:20:08 +0200
commitb7af35c24679ff46c92e96078d2e4d1930cb8b15 (patch)
tree8b862e822a82c421bd8538c4f7fb2bb8e001a684 /lib/Travel/Routing/DE
parentf40128dedfd431e91960e1271f1a677369941058 (diff)
Section: add TRSF type (unspecified local transit)
Diffstat (limited to 'lib/Travel/Routing/DE')
-rw-r--r--lib/Travel/Routing/DE/HAFAS/Connection/Section.pm17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/Travel/Routing/DE/HAFAS/Connection/Section.pm b/lib/Travel/Routing/DE/HAFAS/Connection/Section.pm
index 09032af..3a8b958 100644
--- a/lib/Travel/Routing/DE/HAFAS/Connection/Section.pm
+++ b/lib/Travel/Routing/DE/HAFAS/Connection/Section.pm
@@ -126,7 +126,7 @@ sub new {
hafas => $hafas,
);
}
- elsif ( $sec->{type} eq 'WALK' ) {
+ elsif ( $sec->{type} eq 'TRSF' or $sec->{type} eq 'WALK' ) {
$ref->{distance} = $sec->{gis}{dist};
my $duration = $sec->{gis}{durS};
$ref->{duration} = DateTime::Duration->new(
@@ -270,15 +270,15 @@ Travel::Status::DE::HAFAS::Location(3pm) object describing the departure stop.
=item $section->dep_platform
-=item $section->distance (WALK)
+=item $section->distance (TRSF, WALK)
-Walking distance in meters. Does not take vertical elevation changes into
-account.
+Transfer or walking distance in meters. Does not take vertical elevation
+changes into account.
-=item $section->duration (WALK)
+=item $section->duration (TRSF, WALK)
-DateTime::Duration(3pm) oobject holding the walking duration.
-Typically assumes a slow pace.
+DateTime::Duration(3pm) oobject holding the estimated transfer or walk
+duration. Typically assumes a slow pace.
=item $section->journey (JNY)
@@ -328,7 +328,8 @@ Undef for the first journey in a connection.
=item $section->type
Type of this section as exposeed by the HAFAS backend.
-Known types: B<JNY> (a public transit journey) and B<WALK> (walking).
+Known types: B<JNY> (a public transit journey), B<TRSF> (unspecified local
+transit), and B<WALK> (walking).
=back