HapiArrival

data class HapiArrival(name: String, type: HapiLocationType, stop: String, stopid: String, stopExtId: String?, prognosisType: HafasPrognosisType?, time: LocalTime, scheduledTimeChanged: Boolean, date: LocalDate, tz: ZoneOffset, track: String?, rtTime: LocalTime?, rtDate: LocalDate?, rtTz: ZoneOffset, rtTrack: String?, cancelled: Boolean, partCancelled: Boolean, reachable: Boolean, redirected: Boolean, origin: String?, isBorderStop: Boolean, entry: Boolean?, JourneyDetailRef: String, JourneyStatus: HapiJourneyStatus?, Product: List<HapiProduct>, Notes: List<HapiNote>, Messages: List<HapiMessage>, altId: List<String>, Stops: List<HapiStop>, Occupancy: List<HapiOccupancy>)

The element Arrival contains all information about a arrival like time, date, stop/station name, track, realtime time, date and track, origin, name and type of the journey. It also contains a reference to journey details.

Constructors

HapiArrival
Link copied to clipboard
fun HapiArrival(name: String, type: HapiLocationType, stop: String, stopid: String, stopExtId: String?, prognosisType: HafasPrognosisType?, time: LocalTime, scheduledTimeChanged: Boolean = false, date: LocalDate, tz: ZoneOffset = ZoneOffset(0.0), track: String?, rtTime: LocalTime?, rtDate: LocalDate?, rtTz: ZoneOffset = ZoneOffset(0.0), rtTrack: String?, cancelled: Boolean = false, partCancelled: Boolean = false, reachable: Boolean = true, redirected: Boolean = false, origin: String?, isBorderStop: Boolean = false, entry: Boolean?, JourneyDetailRef: String, JourneyStatus: HapiJourneyStatus?, Product: List<HapiProduct> = emptyList(), Notes: List<HapiNote> = emptyList(), Messages: List<HapiMessage> = emptyList(), altId: List<String> = emptyList(), Stops: List<HapiStop> = emptyList(), Occupancy: List<HapiOccupancy> = emptyList())

Properties

altId
Link copied to clipboard
val altId: List<String>
cancelled
Link copied to clipboard
val cancelled: Boolean = false

Will be true if this journey is cancelled

date
Link copied to clipboard
val date: LocalDate

Date in format YYYY-MM-DD.

entry
Link copied to clipboard
val entry: Boolean?

True, if the stop is an entry point.

isBorderStop
Link copied to clipboard
val isBorderStop: Boolean = false

Will be true if this stop is a border stop

JourneyDetailRef
Link copied to clipboard
val JourneyDetailRef: String
JourneyStatus
Link copied to clipboard
val JourneyStatus: HapiJourneyStatus?
Messages
Link copied to clipboard
val Messages: List<HapiMessage>
name
Link copied to clipboard
val name: String

Specifies the name of the arriving journey (e.g. "Bus 100") as used for display.

Notes
Link copied to clipboard
val Notes: List<HapiNote>
Occupancy
Link copied to clipboard
val Occupancy: List<HapiOccupancy>
origin
Link copied to clipboard
val origin: String?

Origin of the journey. This is the first stop of the journey. Get the full journey of the train or bus with the JourneyDetails service.

partCancelled
Link copied to clipboard
val partCancelled: Boolean = false

Will be true if this journey is partially cancelled.

Product
Link copied to clipboard
val Product: List<HapiProduct>
prognosisType
Link copied to clipboard
val prognosisType: HafasPrognosisType?

Prognosis type of arrival date and time.

reachable
Link copied to clipboard
val reachable: Boolean = true

Will be true if this journey is reachable.

redirected
Link copied to clipboard
val redirected: Boolean = false

Will be true if this journey is redirected.

rtDate
Link copied to clipboard
val rtDate: LocalDate?

Realtime date in format YYYY-MM-DD, if available.

rtTime
Link copied to clipboard
val rtTime: LocalTime?

Realtime time in format hh:mm:ss if available.

rtTrack
Link copied to clipboard
val rtTrack: String?

Realtime track information, if available.

rtTz
Link copied to clipboard
val rtTz: ZoneOffset

Realtime time zone information in the format +/- minutes, if available.

scheduledTimeChanged
Link copied to clipboard
val scheduledTimeChanged: Boolean = false

Scheduled time changed.

stop
Link copied to clipboard
val stop: String

Contains the name of the stop/station.

stopExtId
Link copied to clipboard
val stopExtId: String?

External ID of this stop/station

stopid
Link copied to clipboard
val stopid: String

Contains the ID of the stop/station.

Stops
Link copied to clipboard
val Stops: List<HapiStop>
time
Link copied to clipboard
val time: LocalTime

Time in format hh:mm:ss

track
Link copied to clipboard
val track: String?

Arrival track information, if available.

type
Link copied to clipboard
val type: HapiLocationType

The attribute type specifies the type of arrivals location. Valid values are ST (stop/station), ADR (address), POI (point of interest), CRD (coordinate), MCP (mode change point) or HL (hailing point).

tz
Link copied to clipboard
val tz: ZoneOffset

Time zone information in the format +/- minutes