From 8f13385e31b81e544d991b629f783f90eaeab4a7 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 15 Dec 2024 19:34:59 +0100 Subject: Journey: add ID and stop accessors --- lib/Travel/Status/DE/DBRIS/Journey.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Travel/Status/DE/DBRIS/Journey.pm b/lib/Travel/Status/DE/DBRIS/Journey.pm index 30026ca..d82b21f 100644 --- a/lib/Travel/Status/DE/DBRIS/Journey.pm +++ b/lib/Travel/Status/DE/DBRIS/Journey.pm @@ -21,6 +21,11 @@ sub new { my $ref = { type => $json->{type}, line => $json->{lineName}, + id => $json->{id}, + journey_id => $json->{journeyID}, + admin_id => $json->{administrationID}, + stop_eva => $json->{stopPlace}{eva}, + stop_name => $json->{stopPlace}{name}, is_cancelled => $json->{canceled}, dest_name => $json->{destination}{name}, platform => $json->{platform}, -- cgit v1.2.3