diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-10-11 22:58:17 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-10-11 22:58:17 +0200 |
commit | 85b59dfcba8ddd2f1e0ab312b15ca66443902d9c (patch) | |
tree | e574725cba264ccbfb2b4f6bdc91f6c6558e7a62 /lib/Travel/Status/DE | |
parent | db263b06a197ea6b949d0fbbc06c4012921a7842 (diff) |
Journey: add polyline accessor
Diffstat (limited to 'lib/Travel/Status/DE')
-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) = @_; |