From 85b59dfcba8ddd2f1e0ab312b15ca66443902d9c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 11 Oct 2022 22:58:17 +0200 Subject: Journey: add polyline accessor --- lib/Travel/Status/DE/HAFAS/Journey.pm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/Travel/Status') 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) = @_; -- cgit v1.2.3