summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-07-13 17:45:15 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-07-13 17:45:15 +0200
commit9a196c63438f37b116067dc93e5e16655e50f926 (patch)
treeafff1b7ff046921bad3dc5c9048b2eaabc360b80 /lib
parentc679a589c39d7a727b43d7e81d64c5e8fcd4a97b (diff)
Release v0.040.04
Diffstat (limited to 'lib')
-rw-r--r--lib/Travel/Status/DE/DeutscheBahn.pm7
-rw-r--r--lib/Travel/Status/DE/DeutscheBahn/Result.pm19
2 files changed, 15 insertions, 11 deletions
diff --git a/lib/Travel/Status/DE/DeutscheBahn.pm b/lib/Travel/Status/DE/DeutscheBahn.pm
index 9f71eb0..46c3928 100644
--- a/lib/Travel/Status/DE/DeutscheBahn.pm
+++ b/lib/Travel/Status/DE/DeutscheBahn.pm
@@ -10,7 +10,7 @@ use POSIX qw(strftime);
use Travel::Status::DE::DeutscheBahn::Result;
use XML::LibXML;
-our $VERSION = '0.03';
+our $VERSION = '0.04';
sub new {
my ( $obj, %conf ) = @_;
@@ -202,7 +202,7 @@ arrival/departure monitor
=head1 VERSION
-version 0.03
+version 0.04
=head1 DESCRIPTION
@@ -280,8 +280,7 @@ None.
=head1 BUGS AND LIMITATIONS
-In the web interface, a train's route contains station names and the
-corresponding arrival times. These times are not yet accessible.
+There are a few character encoding issues.
=head1 SEE ALSO
diff --git a/lib/Travel/Status/DE/DeutscheBahn/Result.pm b/lib/Travel/Status/DE/DeutscheBahn/Result.pm
index a474f8a..7445f7e 100644
--- a/lib/Travel/Status/DE/DeutscheBahn/Result.pm
+++ b/lib/Travel/Status/DE/DeutscheBahn/Result.pm
@@ -6,7 +6,7 @@ use 5.010;
use parent 'Class::Accessor';
-our $VERSION = '0.03';
+our $VERSION = '0.04';
Travel::Status::DE::DeutscheBahn::Result->mk_ro_accessors(
qw(time train route_end route_raw platform info_raw));
@@ -149,7 +149,7 @@ arrival/departure received by Travel::Status::DE::DeutscheBahn
=head1 VERSION
-version 0.03
+version 0.04
=head1 DESCRIPTION
@@ -177,7 +177,7 @@ Convenience aliases for $result->route_end.
=item $result->delay
-Returns the train's delay in steps of 5 minutes, or undef if it is unknown.
+Returns the train's delay in minutes, or undef if it is unknown.
=item $result->info
@@ -196,13 +196,18 @@ station and its origin/destination.
=item $result->route_interesting([I<max>])
-Returns a list of (at most I<max>) interesting stations the train will pass on
-its journey. This is somewhat tricky (and therefore experimental).
+Returns a list of up to I<max> (default: 3) interesting stations the train
+will pass on its journey. Since deciding whether a station is interesting or
+not is somewhat tricky, this feature should be considered experimental.
The first element of the list is always the train's next stop. The following
elements contain as many main stations as possible, but there may also be
smaller stations if not enough main stations are available.
+In future versions, other factors may be taken into account as well. For
+example, right now airport stations are usually not included in this list,
+although they should be.
+
Note that all main stations will be stripped of their "Hbf" suffix.
=item $result->route_raw
@@ -248,7 +253,7 @@ Required I<data>:
=item B<platform> => I<string>
-=item B<info> => I<string>
+=item B<info_raw> => I<string>
=back
@@ -268,7 +273,7 @@ None.
=head1 BUGS AND LIMITATIONS
-Unknown.
+Arrival times are present in B<route_raw>, but not accessible via B<route>.
=head1 SEE ALSO