summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog5
-rw-r--r--lib/Travel/Status/DE/HAFAS/Result.pm7
2 files changed, 12 insertions, 0 deletions
diff --git a/Changelog b/Changelog
index d969ca9..392925c 100644
--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,8 @@
+git HEAD
+
+ * Result: Fix ->type accessor (was not working for all backends)
+ * Result: Add ->train_no / ->line_no accessor
+
Travel::Status::DE::DeutscheBahn 2.00 - Fri Sep 25 2015
* This release is NOT backwards compatible with 1.xx versions
diff --git a/lib/Travel/Status/DE/HAFAS/Result.pm b/lib/Travel/Status/DE/HAFAS/Result.pm
index 5048f35..dd69e14 100644
--- a/lib/Travel/Status/DE/HAFAS/Result.pm
+++ b/lib/Travel/Status/DE/HAFAS/Result.pm
@@ -209,6 +209,13 @@ Returns the line name, either in a format like "Bus SB16" (Bus line SB16)
or "RE 10111" (RegionalExpress train 10111, no line information).
May contain extraneous whitespace characters.
+=item $result->line_no
+
+=item $result->train_no
+
+Returns the line/train number, for instance "SB16" (bus line SB16),
+"11" (Underground train line U 11) or 1011 ("RegionalExpress train 1011").
+
=item $result->platform
Returns the arrival/departure platform.