summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-06-19 19:15:57 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-06-19 19:15:57 +0200
commita539ee69c87ba3c179604a3edb86911c74b697d0 (patch)
treed241a5b62425fd795f5eefedcd64daed56250bfe
parent5f3a234eb6eeb7626c7db0ed4a9b26afee042f05 (diff)
document footpath accessors
-rw-r--r--lib/Travel/Routing/DE/EFA/Route/Part.pm32
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/Travel/Routing/DE/EFA/Route/Part.pm b/lib/Travel/Routing/DE/EFA/Route/Part.pm
index d308840..f46fa78 100644
--- a/lib/Travel/Routing/DE/EFA/Route/Part.pm
+++ b/lib/Travel/Routing/DE/EFA/Route/Part.pm
@@ -257,6 +257,38 @@ departure station, usually outlining how to transfer from thep previous train
List of URLs, may be empty. Each URL poinst to an HTML map of the departure
station.
+=item $part->footpath_duration
+
+Walking duration when transferring before / after / during this trip
+in minutes. The meaning depends on the value of B<footpath_type>.
+
+=item $part->footpath_parts
+
+Returns a list of [I<type>, I<level>] arrayrefs describing the
+footpath. For instance, ["ESCALATOR", "UP"], ["LEVEL", "LEVEL"],
+["STAIRS", "UP"] means first taking an escalator up, then walking a while,
+and then taking a flight of stairs up again.
+
+The content of I<type> and I<level> comes directly from the EFA backend. At
+the moment, the following values are known:
+
+=over
+
+=item type: ESCALATOR, LEVEL, STAIRS
+
+=item level: DOWN, LEVEL, UP
+
+=back
+
+=item $part->footpath_type
+
+type of this footpath, passed through from the EFA backend. The value
+"AFTER" indicates a footpath (transfer) after this route part. The value
+"IDEST" indicates that this route part already is a footpath (aka a walking
+connection between two stops), so the B<footpath> accessors contain redundant
+information. Other values such as "BEFORE" may also be returned, but this is
+unknown at this point.
+
=item $part->regular_notes
Remarks about the line serving this connaction part. Returns a list of