summaryrefslogtreecommitdiff
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
parentc679a589c39d7a727b43d7e81d64c5e8fcd4a97b (diff)
Release v0.040.04
-rw-r--r--Changelog2
-rwxr-xr-xbin/db-ris4
-rw-r--r--lib/Travel/Status/DE/DeutscheBahn.pm7
-rw-r--r--lib/Travel/Status/DE/DeutscheBahn/Result.pm19
4 files changed, 18 insertions, 14 deletions
diff --git a/Changelog b/Changelog
index b9c5ed7..ac1e794 100644
--- a/Changelog
+++ b/Changelog
@@ -1,4 +1,4 @@
-git HEAD
+Travel::Status::DE::DeutscheBahn 0.04 - Wed Jul 13 2011
[Travel::Status::DE::DeutscheBahn::Result]
* The info accessor now strips the mostly useless "k.A." / "pünktlich"
diff --git a/bin/db-ris b/bin/db-ris
index 25842a0..a61dc07 100755
--- a/bin/db-ris
+++ b/bin/db-ris
@@ -3,7 +3,7 @@ use strict;
use warnings;
use 5.010;
-our $VERSION = '0.03';
+our $VERSION = '0.04';
use Getopt::Long qw(:config no_ignore_case);
use List::Util qw(first max);
@@ -123,7 +123,7 @@ B<db-ris> [B<-d> I<date>] [B<-L>] [B<-m> I<motlist>] [B<-t> I<time>]
=head1 VERSION
-version 0.03
+version 0.04
=head1 DESCRIPTION
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