From a68cadc24bcdceb6b141cc689589bf8741392fa9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 7 Oct 2015 20:24:30 +0200 Subject: Result.pm documentation --- lib/Travel/Status/DE/URA/Result.pm | 19 ++++++++++++++++--- 1 file 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) If the B method of Travel::Status::DE::URA(3pm) was called with -B => true: -Returns a list of arrayrefs describing the entire route. I.e. +B => true: +Returns up to I (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 method of Travel::Status::DE::URA(3pm) was called with +B => 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, but contains the stops before the requested one. + =item $departure->stop The stop belonging to this departure. -- cgit v1.2.3