From 99a89560321cb6981f06c5ea783b11acaec98ada Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 30 Aug 2024 16:55:13 +0200 Subject: Use "Steig" rather than "Gleis" for bus platforms --- lib/Travelynx/Model/InTransit.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/Travelynx/Model/InTransit.pm b/lib/Travelynx/Model/InTransit.pm index 4f54c7d..62e60f1 100644 --- a/lib/Travelynx/Model/InTransit.pm +++ b/lib/Travelynx/Model/InTransit.pm @@ -265,6 +265,11 @@ sub postprocess { $ret->{extra_data} = $ret->{data}; $ret->{comment} = $ret->{user_data}{comment}; + $ret->{platform_type} = 'Gleis'; + if ( $ret->{train_type} =~ m{ ast | bus | ruf }ix ) { + $ret->{platform_type} = 'Steig'; + } + $ret->{visibility_str} = $ret->{visibility} ? $visibility_itoa{ $ret->{visibility} } -- cgit v1.2.3