summaryrefslogtreecommitdiff
path: root/lib/Travel/Routing/DE/VRR/Route
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travel/Routing/DE/VRR/Route')
-rw-r--r--lib/Travel/Routing/DE/VRR/Route/Part.pm14
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) = @_;