From b5525a34aebda39ebde33a6fc74c2340facf9937 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 13 Jan 2025 18:21:18 +0100 Subject: HAFAS(3pm): add service to SYNOPSIS; move it to front of option list --- lib/Travel/Routing/DE/HAFAS.pm | 15 ++++++++------- 1 file 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 => I (mandatory) + +Request results from I. +See B (and C<< hafas-m --list >>) for a list of supported +services. + =item B => I (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. Note that this does not account for real-time data: the backend may return delayed connections that violate the specified changeover duration. -=item B => I (mandatory) - -Request results from I. -See B (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 -- cgit v1.2.3