HapiDeparture

data class HapiDeparture(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, direction: String?, timeAtArrival: LocalTime?, dateAtArrival: LocalDate?, rtTimeAtArrival: LocalTime?, rtDateAtArrival: LocalDate?, isFastest: Boolean?, 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 Departure contains all information about a departure like time, date, stop/station name, track, realtime time, date and track, direction, name and type of the journey. It also contains a reference to journey details.

Constructors

HapiDeparture
Link copied to clipboard
fun HapiDeparture(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, direction: String?, timeAtArrival: LocalTime?, dateAtArrival: LocalDate?, rtTimeAtArrival: LocalTime?, rtDateAtArrival: LocalDate?, isFastest: Boolean?, 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.

dateAtArrival
Link copied to clipboard
val dateAtArrival: LocalDate?

Date in format YYYY-MM-DD the services arrives at the destination.

direction
Link copied to clipboard
val direction: String?

Direction information. This is the last stop of the journey. Get the full journey of the train or bus with the JourneyDetails service.

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

isFastest
Link copied to clipboard
val isFastest: Boolean?

Services is 'fastest service to' location.

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 departing 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>
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 departure 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.

rtDateAtArrival
Link copied to clipboard
val rtDateAtArrival: LocalDate?

Realtime date in format YYYY-MM-DD the services arrives at the destination.

rtTime
Link copied to clipboard
val rtTime: LocalTime?

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

rtTimeAtArrival
Link copied to clipboard
val rtTimeAtArrival: LocalTime?

Realtime time in format hh:mm:ss the services arrives at the destination.

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

timeAtArrival
Link copied to clipboard
val timeAtArrival: LocalTime?

Time in format hh:mm:ss the services arrives at the destination.

track
Link copied to clipboard
val track: String?

Track information, if available.

type
Link copied to clipboard
val type: HapiLocationType

The attribute type specifies the type of departs 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