summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-10-10 15:44:07 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-10-10 15:44:07 +0200
commit70d7348525e60b23d3001245cb99c10b81bf3955 (patch)
tree9956fcb27fe0d6a623a5998aa78e4f2a42c9cfe0
parent08d0de73ca39d8bfc8fdb7c4bc89305aba578336 (diff)
documentation
-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.