Unverified Commit d40b2e69 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

HAFAS: station: add names und uics accessors

parent 3bc77864
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -705,6 +705,8 @@ sub station {
		$self->{station_info} = {
			name  => $loc->{name},
			uic   => $loc->{extId},
			names => [ map { $locL[ $_->[0] ]{name} } @prefcounts ],
			uics  => [ map { $locL[ $_->[0] ]{extId} } @prefcounts ],
		};
	}
	else {
@@ -949,13 +951,14 @@ service messages. Each message belongs to at least one arrival/departure.

=item $status->station

Returns a hashref describing the most common departure station in all requested
journeys. Note that this may be different from the station for which departures
were requested, as HAFAS uses different identifiers for train stations, bus
stops, and other modes of transit even if they are interlinked.
Returns a hashref describing the departure stations in all requested journeys.
The hashref contains four entries: B<names> (station names), B<name> (most
common name), B<uics> (UIC / EVA IDs), and B<uic> (most common UIC / EVA ID).
These are subject to change.

The hashref contains two entries: B<name> (station name) and B<uic> (UIC / EVA
ID). These are subject to change.
Note that the most common name and ID may be different from the station for
which departures were requested, as HAFAS uses different identifiers for train
stations, bus stops, and other modes of transit even if they are interlinked.

Not available in journey mode.