From 920477d9a0a0b5d5178208fe3da342e5b925640f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 18 Jun 2015 15:52:16 +0200 Subject: parse most info and make it available properly --- lib/Travel/Routing/DE/EFA/Route/Part.pm | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'lib/Travel/Routing/DE/EFA') 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 { -- cgit v1.2.3