Unverified Commit b5525a34 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

HAFAS(3pm): add service to SYNOPSIS; move it to front of option list

parent 068f7ba6
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -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