Trip

data class Trip(literalId: String?, numericId: Long, departure: Stop.Departure, arrival: Stop.Arrival, legs: List<Leg>, isRideable: Boolean, frequency: Frequency?, schedule: Trip.Schedule?, refreshContext: Trip.RefreshContext?) : Identifiable

Types

RefreshContext
Link copied to clipboard
interface RefreshContext
Schedule
Link copied to clipboard
data class Schedule(text: String, dates: List<LocalDate>)

Properties

arrival
Link copied to clipboard
val arrival: Stop.Arrival
departure
Link copied to clipboard
val departure: Stop.Departure
frequency
Link copied to clipboard
val frequency: Frequency? = null
isRideable
Link copied to clipboard
val isRideable: Boolean = true
legs
Link copied to clipboard
val legs: List<Leg>
literalId
Link copied to clipboard
open override val literalId: String?
numericId
Link copied to clipboard
open override val numericId: Long
refreshContext
Link copied to clipboard
val refreshContext: Trip.RefreshContext? = null
schedule
Link copied to clipboard
val schedule: Trip.Schedule? = null

Extensions

realtimeDuration
Link copied to clipboard
val Trip.realtimeDuration: Duration
scheduledDuration
Link copied to clipboard
val Trip.scheduledDuration: Duration