summaryrefslogtreecommitdiff
path: root/lib/Travel/Routing/DE
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travel/Routing/DE')
-rw-r--r--lib/Travel/Routing/DE/HAFAS.pm15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/Travel/Routing/DE/HAFAS.pm b/lib/Travel/Routing/DE/HAFAS.pm
index a53893f..891849a 100644
--- a/lib/Travel/Routing/DE/HAFAS.pm
+++ b/lib/Travel/Routing/DE/HAFAS.pm
@@ -527,6 +527,7 @@ Travel::Routing::DE::HAFAS - Interface to HAFAS itinerary services
use Travel::Routing::DE::HAFAS;
my $hafas = Travel::Routing::DE::HAFAS->new(
+ service => 'VRN',
from_stop => 'Eichlinghofen H-Bahn, Dortmund',
to_stop => 'Essen-Kupferdreh',
);
@@ -574,6 +575,12 @@ supports the following additional flags:
=over
+=item B<service> => I<service> (mandatory)
+
+Request results from I<service>.
+See B<get_services> (and C<< hafas-m --list >>) for a list of supported
+services.
+
=item B<from_stop> => I<stop> (mandatory)
Origin stop, e.g. "Essen HBf" or "Alfredusbad, Essen (Ruhr)". The stop
@@ -639,12 +646,6 @@ Request connections with scheduled changeover durations of at least I<minutes>.
Note that this does not account for real-time data: the backend may return
delayed connections that violate the specified changeover duration.
-=item B<service> => I<service> (mandatory)
-
-Request results from I<service>.
-See B<get_services> (and C<< hafas-m --list >>) for a list of supported
-services.
-
=back
=item $hafas_p = Travel::Routing::DE::HAFAS->new_p(I<%opt>)
@@ -737,7 +738,7 @@ None.
=head1 BUGS AND LIMITATIONS
-The non-default services (anything other than DB) are not well tested.
+Some HAFAS services are not well-tested.
=head1 SEE ALSO