summaryrefslogtreecommitdiff
path: root/lib/Travel/Status
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-10-11 22:58:17 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-10-11 22:58:17 +0200
commit85b59dfcba8ddd2f1e0ab312b15ca66443902d9c (patch)
treee574725cba264ccbfb2b4f6bdc91f6c6558e7a62 /lib/Travel/Status
parentdb263b06a197ea6b949d0fbbc06c4012921a7842 (diff)
Journey: add polyline accessor
Diffstat (limited to 'lib/Travel/Status')
-rw-r--r--lib/Travel/Status/DE/HAFAS/Journey.pm9
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) = @_;