summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/HAFAS/Journey.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travel/Status/DE/HAFAS/Journey.pm')
-rw-r--r--lib/Travel/Status/DE/HAFAS/Journey.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm
index f7206e8..d999ca1 100644
--- a/lib/Travel/Status/DE/HAFAS/Journey.pm
+++ b/lib/Travel/Status/DE/HAFAS/Journey.pm
@@ -167,9 +167,11 @@ sub new {
if ( $journey->{stbStop} ) {
$ref->{station} = $locL->[ $journey->{stbStop}{locX} ]->name;
$ref->{station_eva} = 0 + $locL->[ $journey->{stbStop}{locX} ]->eva;
- $ref->{sched_platform} = $journey->{stbStop}{dPlatfS};
- $ref->{rt_platform} = $journey->{stbStop}{dPlatfR};
- $ref->{platform} = $ref->{rt_platform} // $ref->{sched_platform};
+ $ref->{sched_platform} = $journey->{stbStop}{dPlatfS}
+ // $journey->{stbStop}{dPltfS}{txt};
+ $ref->{rt_platform} = $journey->{stbStop}{dPlatfR}
+ // $journey->{stbStop}{dPltfR}{txt};
+ $ref->{platform} = $ref->{rt_platform} // $ref->{sched_platform};
my $time_s
= $journey->{stbStop}{ $hafas->{arrivals} ? 'aTimeS' : 'dTimeS' };