diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-11-28 11:24:12 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-11-28 11:24:12 +0100 |
commit | 2d274f589b640c7570e9da22593dd0c0a7419b81 (patch) | |
tree | 1a24afeac06c39d578e7ee900fd9faec6672039c /lib/Travel/Routing/DE/VRR/Route | |
parent | 779ee8af322ce8079890efd4714eae64225abcc8 (diff) |
start switching from HTML to XML mode (parsing works fine, todo: error detection)
Diffstat (limited to 'lib/Travel/Routing/DE/VRR/Route')
-rw-r--r-- | lib/Travel/Routing/DE/VRR/Route/Part.pm | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/Travel/Routing/DE/VRR/Route/Part.pm b/lib/Travel/Routing/DE/VRR/Route/Part.pm index ee01baf..d01260c 100644 --- a/lib/Travel/Routing/DE/VRR/Route/Part.pm +++ b/lib/Travel/Routing/DE/VRR/Route/Part.pm @@ -9,7 +9,7 @@ use parent 'Class::Accessor'; our $VERSION = '1.06'; Travel::Routing::DE::VRR::Route::Part->mk_ro_accessors( - qw(arrival_stop arrival_time departure_stop departure_time train_line + qw(arrival_platform arrival_stop arrival_time departure_platform departure_stop departure_time train_line train_destination) ); @@ -21,6 +21,18 @@ sub new { return bless( $ref, $obj ); } +sub arrival_stop_and_platform { + my ($self) = @_; + + return sprintf('%s: %s', $self->get(qw(arrival_stop arrival_platform))); +} + +sub departure_stop_and_platform { + my ($self) = @_; + + return sprintf('%s: %s', $self->get(qw(departure_stop departure_platform))); +} + sub extra { my ($self) = @_; |