summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/URA
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-10-07 20:24:30 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-10-07 20:24:30 +0200
commita68cadc24bcdceb6b141cc689589bf8741392fa9 (patch)
treeeff37bd9fd3ea8c90db4d0f37683efba403dc1b0 /lib/Travel/Status/DE/URA
parentd688b22c7630a4d590c2185732f9a910e30d4a6f (diff)
Result.pm documentation
Diffstat (limited to 'lib/Travel/Status/DE/URA')
-rw-r--r--lib/Travel/Status/DE/URA/Result.pm19
1 files changed, 16 insertions, 3 deletions
diff --git a/lib/Travel/Status/DE/URA/Result.pm b/lib/Travel/Status/DE/URA/Result.pm
index f59ba8e..8ead690 100644
--- a/lib/Travel/Status/DE/URA/Result.pm
+++ b/lib/Travel/Status/DE/URA/Result.pm
@@ -189,15 +189,28 @@ The name of the line.
The number of the line.
-=item $departure->route_timetable
+=item $departure->route_interesting(I<num_stops>)
If the B<results> method of Travel::Status::DE::URA(3pm) was called with
-B<full_routes> => true:
-Returns a list of arrayrefs describing the entire route. I.e.
+B<calculate_routes> => true:
+Returns up to I<num_stops> (defaults to 3) stops considered interesting
+(usually of major importance in the transit area). Returns only stop names,
+not the arrival/departure times. Note that the importance is determined
+heuristically based on the stop name, so it is not always accurate.
+
+=item $departure->route_pre
+
+If the B<results> method of Travel::Status::DE::URA(3pm) was called with
+B<calculate_routes> => true:
+Returns a list of arrayrefs describing all stops after the requested one. I.e.
C<< ([$time1, $stop1], [$time2, $stop2], ...) >>.
The times are DateTime::Duration(3pm) objects, the stops are only names,
not IDs (subject to change). Returns an empty list otherwise.
+=item $departure->route_post
+
+Same as B<route_pre>, but contains the stops before the requested one.
+
=item $departure->stop
The stop belonging to this departure.