summaryrefslogtreecommitdiff
path: root/lib/Travel
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-12-11 20:01:53 +0100
committerDaniel Friesel <derf@finalrewind.org>2013-12-11 20:01:53 +0100
commit385eab07bef28d42e55bcab757f18864124523ab (patch)
tree223129980afa30e89156c680377aedb8955671d3 /lib/Travel
parentcf395bd1fe79ea41bfce8e2064f3bb3f6294085e (diff)
Update Travel::Status::DE::ASEAG documentation
Diffstat (limited to 'lib/Travel')
-rw-r--r--lib/Travel/Status/DE/ASEAG.pm45
1 files changed, 31 insertions, 14 deletions
diff --git a/lib/Travel/Status/DE/ASEAG.pm b/lib/Travel/Status/DE/ASEAG.pm
index ada29e4..3a22652 100644
--- a/lib/Travel/Status/DE/ASEAG.pm
+++ b/lib/Travel/Status/DE/ASEAG.pm
@@ -250,32 +250,49 @@ Schedule information is not included.
=item my $status = Travel::Status::DE::ASEAG->new(I<%opt>)
Requests the departures as specified by I<opts> and returns a new
-Travel::Status::DE::ASEAG object. Dies if the wrong I<opts> were passed.
+Travel::Status::DE::ASEAG object.
-Arguments:
+Accepts the same options is C<< $status->results >>. Options specified here
+can be overridden later, but may limit the set of available departures.
+
+
+=item $status->errstr
+
+In case of an HTTP request error, returns a string describing it. If none
+occured, returns undef.
+
+=item $status->results(I<%opt>)
+
+Returns a list of Travel::Status::DE::ASEAG::Result(3pm) objects, each describing
+one departure.
+
+Accepted parameters (all are optional):
=over
-=item B<stop> => I<name>
+=item B<full_routes> => B<before>|B<after>|I<bool> (default 0)
-Name of the stop to list departures for.
+When set to a true value: Compute B<route_timetable> fields in all
+Travel::Status::DE::ASEAG::Result(3pm) objects, otherwise they will not be
+set.
-=item B<fuzzy> => I<bool>
+B<before> / B<after> limits the timetable to stops before / after the stop
+I<name> (if set).
-A true value (default) allows fuzzy matching for the I<name> set above,
-a false one requires an exact string match.
+=item B<fuzzy> => I<bool> (default 1)
-=back
+A true value allows fuzzy matching for the I<name> set above, a false one
+requires an exact string match.
-=item $status->errstr
+=item B<hide_past> => I<bool> (default 1)
-In case of an HTTP request error, returns a string describing it. If none
-occured, returns undef.
+Do not include past departures in the result list and the computed timetables.
-=item $status->results
+=item B<stop> => I<name>
-Returns a list of Travel::Status::DE::ASEAG::Result(3pm) objects, each describing
-one departure.
+Only return departures at stop I<name>.
+
+=back
=back