HapiTrip

data class HapiTrip(alternative: Boolean, individualChangeTimes: Boolean, valid: Boolean, idx: Int?, tripId: String?, ctxRecon: String?, duration: Duration?, rtDuration: Duration?, ret: Boolean, ecoUrl: String?, checksum: String?, transferCount: Int, Origin: HapiOrigin?, Destination: HapiDestination?, Messages: List<HapiMessage>, Notes: List<HapiNote>, Eco: HapiEco?, ServiceDays: List<HapiServiceDays>, Freq: HapiFrequency?, LegList: List<HapiLeg>, TariffResult: HapiTariffResult?, calculation: HapiCalculationType?, Occupancy: HapiOccupancy?, reliability: HapiConnectionReliability?)

Properties

alternative
Link copied to clipboard
val alternative: Boolean = false

The type indicates whether this is an original connection or an realtime alternative.

calculation
Link copied to clipboard
val calculation: HapiCalculationType?
checksum
Link copied to clipboard
val checksum: String?

Checksum of the trip to filter same results on client side after scroll requests.

ctxRecon
Link copied to clipboard
val ctxRecon: String?

Information for trip reconstruction.

Destination
Link copied to clipboard
val Destination: HapiDestination?
duration
Link copied to clipboard
val duration: Duration?

The duration of the trip.

Eco
Link copied to clipboard
val Eco: HapiEco?
ecoUrl
Link copied to clipboard
val ecoUrl: String?

Contains a precalculated url.

Freq
Link copied to clipboard
val Freq: HapiFrequency?
idx
Link copied to clipboard
val idx: Int?

The index of this trip in the result list. It corresponds to date and time order ascending; unique within the composite TripResponse.

individualChangeTimes
Link copied to clipboard
val individualChangeTimes: Boolean = false

The type indicates whether this trip is based on individual change times (true) or not (false). Default is false.

LegList
Link copied to clipboard
val LegList: List<HapiLeg>
Messages
Link copied to clipboard
val Messages: List<HapiMessage>
Notes
Link copied to clipboard
val Notes: List<HapiNote>
Occupancy
Link copied to clipboard
val Occupancy: HapiOccupancy?
Origin
Link copied to clipboard
val Origin: HapiOrigin?
reliability
Link copied to clipboard
val reliability: HapiConnectionReliability?
ret
Link copied to clipboard
val ret: Boolean = false

true: indicates the trip is a return journey.

rtDuration
Link copied to clipboard
val rtDuration: Duration?

Realtime duration of the trip.

ServiceDays
Link copied to clipboard
val ServiceDays: List<HapiServiceDays>
TariffResult
Link copied to clipboard
val TariffResult: HapiTariffResult?
transferCount
Link copied to clipboard
val transferCount: Int = 0

Count of transfers.

tripId
Link copied to clipboard
val tripId: String?

The trip id of this trip in the result list.

valid
Link copied to clipboard
val valid: Boolean = true

The state indicates if the trip is still possible to ride based on the current realtime situation.