summaryrefslogtreecommitdiff
path: root/lib/Travel/Routing/DE/EFA/Route
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-06-16 22:28:53 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-06-16 22:28:53 +0200
commitffbf7ca613885ce8093cc4325d04cd14e147ab80 (patch)
tree8f712aaa60ae9d695b9b660bb07e8970c842e282 /lib/Travel/Routing/DE/EFA/Route
parent7e3cd10ffba1b29cea5fc48e518884cb0aa67cd2 (diff)
parse footpaths, print them when efa -E is used
Diffstat (limited to 'lib/Travel/Routing/DE/EFA/Route')
-rw-r--r--lib/Travel/Routing/DE/EFA/Route/Part.pm13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/Travel/Routing/DE/EFA/Route/Part.pm b/lib/Travel/Routing/DE/EFA/Route/Part.pm
index 29d81fd..cc52f80 100644
--- a/lib/Travel/Routing/DE/EFA/Route/Part.pm
+++ b/lib/Travel/Routing/DE/EFA/Route/Part.pm
@@ -13,7 +13,9 @@ Travel::Routing::DE::EFA::Route::Part->mk_ro_accessors(
arrival_date arrival_time arrival_sdate arrival_stime delay
departure_platform
departure_stop departure_date departure_time departure_sdate
- departure_stime train_destination train_line train_product
+ departure_stime
+ footpath_duration footpath_type
+ train_destination train_line train_product
)
);
@@ -71,6 +73,15 @@ sub departure_stop_and_platform {
return $self->departure_stop;
}
+sub footpath_parts {
+ my ($self) = @_;
+
+ if ( $self->{footpath_parts} ) {
+ return @{ $self->{footpath_parts} };
+ }
+ return;
+}
+
sub extra {
my ($self) = @_;