summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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