diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-01-13 18:13:11 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-01-13 18:13:11 +0100 |
commit | 3ed8c374a2b4e5175e99d997b3fb74b7cbec5e31 (patch) | |
tree | 0a4e40f95b7c8a76d6e380d06ad72a55b21c7dbc /lib/Travel/Status/DE/HAFAS.pm | |
parent | c144a44db6237bcbe9a4072df6d118734db09369 (diff) |
HAFAS(3pm): The service argument is now mandatory
Diffstat (limited to 'lib/Travel/Status/DE/HAFAS.pm')
-rw-r--r-- | lib/Travel/Status/DE/HAFAS.pm | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm index 2f49337..327af6a 100644 --- a/lib/Travel/Status/DE/HAFAS.pm +++ b/lib/Travel/Status/DE/HAFAS.pm @@ -902,7 +902,19 @@ Requests item(s) as specified by I<opt> and returns a new Travel::Status::DE::HAFAS element with the results. Dies if the wrong I<opt> were passed. -I<opt> must contain either a B<station>, B<geoSearch>, B<locationSearch>, B<journey>, or B<journeyMatch> flag: +I<opt> must contain a HAFAS service identifier: + +=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. + +=back + +Additionally, I<opt> must contain either a B<station>, B<geoSearch>, +B<locationSearch>, B<journey>, or B<journeyMatch> flag: =over @@ -938,6 +950,8 @@ is no real-time data. =back + + The following optional flags may be set. Values in brackets indicate flags that are only relevant in certain request modes, e.g. geoSearch or journey. @@ -993,12 +1007,6 @@ pass an empty hashref to call the LWP::UserAgent constructor without arguments. Request up to I<count> results. Default: 30. -=item B<service> => I<service> - -Request results from I<service>, defaults to "DB". -See B<get_services> (and C<< hafas-m --list >>) for a list of supported -services. - =item B<with_polyline> => I<bool> (journey) Request a polyline (series of geo-coordinates) indicating the train's route. |