HapiJourney

data class HapiJourney(name: String, direction: String, lon: Double?, lat: Double?, trainNumber: String?, trainCategory: String?, Stops: List<HapiStop>, JourneyDetailRef: String?, Product: HapiProduct?, Notes: List<HapiNote>, Messages: List<HapiMessage>, Occupancy: List<HapiOccupancy>)

The element Journey contains all information about a journey like name, direction, lon, lat, train number and train category. It also contains a reference to journey details.

Constructors

HapiJourney
Link copied to clipboard
fun HapiJourney(name: String, direction: String, lon: Double?, lat: Double?, trainNumber: String?, trainCategory: String?, Stops: List<HapiStop> = emptyList(), JourneyDetailRef: String?, Product: HapiProduct?, Notes: List<HapiNote> = emptyList(), Messages: List<HapiMessage> = emptyList(), Occupancy: List<HapiOccupancy> = emptyList())

Properties

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.

JourneyDetailRef
Link copied to clipboard
val JourneyDetailRef: String?
lat
Link copied to clipboard
val lat: Double?

The current latitude position of the journey.

lon
Link copied to clipboard
val lon: Double?

The current longitude position of the journey.

Messages
Link copied to clipboard
val Messages: List<HapiMessage>
name
Link copied to clipboard
val name: String

Specifies the name of the 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>
Product
Link copied to clipboard
val Product: HapiProduct?
Stops
Link copied to clipboard
val Stops: List<HapiStop>
trainCategory
Link copied to clipboard
val trainCategory: String?

Train category as used for display.

trainNumber
Link copied to clipboard
val trainNumber: String?

Train number as used for display.