summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-08-30 16:55:13 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-08-30 16:55:13 +0200
commit99a89560321cb6981f06c5ea783b11acaec98ada (patch)
treeb2f10ca4ea0bb9bde351a797dae5e1ae6150726a /lib
parent4d159fe3785a5a131d36b8ec8676b5abf7eb2fb8 (diff)
Use "Steig" rather than "Gleis" for bus platforms2.8.36
Diffstat (limited to 'lib')
-rw-r--r--lib/Travelynx/Model/InTransit.pm5
1 files changed, 5 insertions, 0 deletions
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} }