From 27a80b67a73c33469cf136ca37b6d3d9f2a346f7 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 26 Apr 2024 22:02:29 +0200 Subject: Replace station_{ds100,uic,name} accessors with station->{ds100,eva,name} --- lib/Travel/Status/DE/DBWagenreihung.pm | 32 ++++---------------------------- 1 file changed, 4 insertions(+), 28 deletions(-) (limited to 'lib') diff --git a/lib/Travel/Status/DE/DBWagenreihung.pm b/lib/Travel/Status/DE/DBWagenreihung.pm index aa3cd8f..eaaabd0 100644 --- a/lib/Travel/Status/DE/DBWagenreihung.pm +++ b/lib/Travel/Status/DE/DBWagenreihung.pm @@ -334,24 +334,6 @@ sub sections { return @{ $self->{sections} // [] }; } -sub station_ds100 { - my ($self) = @_; - - return $self->{data}{istformation}{halt}{rl100}; -} - -sub station_name { - my ($self) = @_; - - return $self->{data}{istformation}{halt}{bahnhofsname}; -} - -sub station_uic { - my ($self) = @_; - - return $self->{data}{istformation}{halt}{evanummer}; -} - sub train_numbers { my ($self) = @_; @@ -882,17 +864,11 @@ Returns the platform name. Describes the sections of the platform this train will depart from. Returns a list of L objects. -=item $wr->station_ds100 - -Returns the DS100 identifier of the requested station. - -=item $wr->station_name - -Returns the name of the requested station. - -=item $wr->station_uic +=item $wr->station -Returns the international id (UIC ID / IBNR) of the requested station. +Returns a hashref describing the requested station. The hashref contains three +entries: B (DS100 / Ril100 identifier), B (EVA ID, related to but +not necessarily identical with UIC station ID), and B (station name). =item $wr->train_descriptions -- cgit v1.2.3