summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/DBWagenreihung/Group.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travel/Status/DE/DBWagenreihung/Group.pm')
-rw-r--r--lib/Travel/Status/DE/DBWagenreihung/Group.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/DBWagenreihung/Group.pm b/lib/Travel/Status/DE/DBWagenreihung/Group.pm
index b6848ab..3da0670 100644
--- a/lib/Travel/Status/DE/DBWagenreihung/Group.pm
+++ b/lib/Travel/Status/DE/DBWagenreihung/Group.pm
@@ -89,6 +89,8 @@ sub new {
train_no => $json{transport}{number},
};
+ $ref->{train} = $ref->{train_type} . ' ' . $ref->{train_no};
+
$ref->{sectors} = [
uniq grep { defined }
map { $_->{platformPosition}{sector} } @{ $json{vehicles} // [] }