TripUpdate
data class TripUpdate(val trip: TripDescriptor, val vehicle: VehicleDescriptor? = null, val stopTimeUpdate: List<TripUpdate.StopTimeUpdate> = emptyList(), val timestamp: Long? = null, val delay: Int? = null, val tripProperties: TripUpdate.TripProperties? = null)(source)
Realtime progress information for a trip.
Constructors
Link copied to clipboard
constructor(trip: TripDescriptor, vehicle: VehicleDescriptor? = null, stopTimeUpdate: List<TripUpdate.StopTimeUpdate> = emptyList(), timestamp: Long? = null, delay: Int? = null, tripProperties: TripUpdate.TripProperties? = null)
Types
Link copied to clipboard
data class StopTimeEvent(val delay: Int? = null, val time: Long? = null, val uncertainty: Int? = null, val scheduledTime: Long? = null)
Timing information for a single arrival or departure event.
Link copied to clipboard
data class StopTimeUpdate(val stopSequence: Int? = null, val stopId: String? = null, val arrival: TripUpdate.StopTimeEvent? = null, val departure: TripUpdate.StopTimeEvent? = null, val departureOccupancyStatus: VehiclePosition.OccupancyStatus? = null, val scheduleRelationship: TripUpdate.StopTimeUpdate.ScheduleRelationship = ScheduleRelationship.Scheduled, val stopTimeProperties: TripUpdate.StopTimeUpdate.StopTimeProperties? = null)
Realtime update for a stop on a trip.