diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-06-18 15:52:16 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-06-18 15:52:16 +0200 |
commit | 920477d9a0a0b5d5178208fe3da342e5b925640f (patch) | |
tree | 6f620a093eb063e1c35d3049a78735e37ed49397 /lib/Travel/Routing/DE/EFA | |
parent | f0b539d7c6619eb3c05a57bdc1b0f7d06e8f0bd5 (diff) |
parse most info and make it available properly
Diffstat (limited to 'lib/Travel/Routing/DE/EFA')
-rw-r--r-- | lib/Travel/Routing/DE/EFA/Route/Part.pm | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/lib/Travel/Routing/DE/EFA/Route/Part.pm b/lib/Travel/Routing/DE/EFA/Route/Part.pm index cc52f80..3bf5d60 100644 --- a/lib/Travel/Routing/DE/EFA/Route/Part.pm +++ b/lib/Travel/Routing/DE/EFA/Route/Part.pm @@ -82,10 +82,29 @@ sub footpath_parts { return; } +# DEPRECATED sub extra { my ($self) = @_; - return @{ $self->{extra} // [] }; + return @{ $self->{sched_info} // [] }; +} + +sub sched_info { + my ($self) = @_; + + if ( $self->{sched_info} ) { + return @{ $self->{sched_info} }; + } + return; +} + +sub current_info { + my ($self) = @_; + + if ( $self->{current_info} ) { + return @{ $self->{current_info} }; + } + return; } sub via { |