HapiJourneyDetail

class HapiJourneyDetail(cancelled: Boolean, partCancelled: Boolean, reachable: Boolean, redirected: Boolean, Stops: List<HapiStop>, Names: List<HapiName>, Directions: List<HapiDirection>, Notes: List<HapiNote>, Messages: List<HapiMessage>, JourneyStatus: HapiJourneyStatus?, Polyline: HapiPolyline?, PolylineGroup: HapiPolylineGroup?, ServiceDays: List<HapiServiceDays>, lastPos: HapiCoord?, lastPosReported: String?, lastPassRouteIdx: Int?, lastPassStopRef: Int?, rtLastPassRouteIdx: Int?, rtLastPassStopRef: Int?) : HapiResponse

The journey details contain a list of stops/stations and notes. They also contain the journeys names and types.

Constructors

HapiJourneyDetail
Link copied to clipboard
fun HapiJourneyDetail(cancelled: Boolean = false, partCancelled: Boolean = false, reachable: Boolean = true, redirected: Boolean = false, Stops: List<HapiStop> = emptyList(), Names: List<HapiName> = emptyList(), Directions: List<HapiDirection> = emptyList(), Notes: List<HapiNote> = emptyList(), Messages: List<HapiMessage> = emptyList(), JourneyStatus: HapiJourneyStatus?, Polyline: HapiPolyline?, PolylineGroup: HapiPolylineGroup?, ServiceDays: List<HapiServiceDays> = emptyList(), lastPos: HapiCoord?, lastPosReported: String?, lastPassRouteIdx: Int?, lastPassStopRef: Int?, rtLastPassRouteIdx: Int?, rtLastPassStopRef: Int?)

Properties

cancelled
Link copied to clipboard
val cancelled: Boolean = false

Will be true if this journey is cancelled.

dialectVersion
Link copied to clipboard
val dialectVersion: String? = null
Directions
Link copied to clipboard
val Directions: List<HapiDirection>
errorCode
Link copied to clipboard
val errorCode: String? = null
errorText
Link copied to clipboard
val errorText: String? = null
JourneyStatus
Link copied to clipboard
val JourneyStatus: HapiJourneyStatus?
lastPassRouteIdx
Link copied to clipboard
val lastPassRouteIdx: Int?

Last passed stop referencing the route index of that stop, even if out of this part of the journey.

lastPassStopRef
Link copied to clipboard
val lastPassStopRef: Int?

Last passed stop referencing the entry index in the stop list, even if out of this part of the journey.

lastPos
Link copied to clipboard
val lastPos: HapiCoord?

Last position of running journey if any.

lastPosReported
Link copied to clipboard
val lastPosReported: String?

Date and time of last position reported if any.

Messages
Link copied to clipboard
val Messages: List<HapiMessage>
Names
Link copied to clipboard
val Names: List<HapiName>
Notes
Link copied to clipboard
val Notes: List<HapiNote>
partCancelled
Link copied to clipboard
val partCancelled: Boolean = false

Will be true if this journey is partially cancelled.

planRtTs
Link copied to clipboard
val planRtTs: Long? = null
Polyline
Link copied to clipboard
val Polyline: HapiPolyline?
PolylineGroup
Link copied to clipboard
val PolylineGroup: HapiPolylineGroup?
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.

requestId
Link copied to clipboard
val requestId: String? = null
rtLastPassRouteIdx
Link copied to clipboard
val rtLastPassRouteIdx: Int?

Last passed stop referencing the route index of that stop, even if out of this part of the journey, real time situation.

rtLastPassStopRef
Link copied to clipboard
val rtLastPassStopRef: Int?

Last passed stop referencing the entry index in the stop list, even if out of this part of the journey.

serverVersion
Link copied to clipboard
val serverVersion: String? = null
ServiceDays
Link copied to clipboard
val ServiceDays: List<HapiServiceDays>
Stops
Link copied to clipboard
val Stops: List<HapiStop>
TechnicalMessages
Link copied to clipboard
val TechnicalMessages: List<HapiPair>
version
Link copied to clipboard
val version: String? = null