diff options
Diffstat (limited to 'lib/Travel/Status')
-rw-r--r-- | lib/Travel/Status/DE/HAFAS/Journey.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm index da29804..6ef6901 100644 --- a/lib/Travel/Status/DE/HAFAS/Journey.pm +++ b/lib/Travel/Status/DE/HAFAS/Journey.pm @@ -217,6 +217,15 @@ sub platform { return $self->{new_platform} // $self->{platform}; } +sub polyline { + my ($self) = @_; + + if ( $self->{polyline} ) { + return @{ $self->{polyline} }; + } + return; +} + sub TO_JSON { my ($self) = @_; |