From 3ed8c374a2b4e5175e99d997b3fb74b7cbec5e31 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 13 Jan 2025 18:13:11 +0100 Subject: HAFAS(3pm): The service argument is now mandatory --- lib/Travel/Status/DE/HAFAS.pm | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'lib/Travel/Status') 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 and returns a new Travel::Status::DE::HAFAS element with the results. Dies if the wrong I were passed. -I must contain either a B, B, B, B, or B flag: +I must contain a HAFAS service identifier: + +=over + +=item B => I (mandatory) + +Request results from I. See B (and C<< hafas-m --list +>>) for a list of supported services. + +=back + +Additionally, I must contain either a B, B, +B, B, or B 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 results. Default: 30. -=item B => I - -Request results from I, defaults to "DB". -See B (and C<< hafas-m --list >>) for a list of supported -services. - =item B => I (journey) Request a polyline (series of geo-coordinates) indicating the train's route. -- cgit v1.2.3