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.

Link copied to clipboard
data class TripProperties(val tripId: String? = null, val startDate: String? = null, val startTime: String? = null, val shapeId: String? = null, val tripHeadsign: String? = null, val tripShortName: String? = null)

Realtime trip-level property overrides.

Properties

Link copied to clipboard
val delay: Int?

Current schedule deviation in seconds; positive means late.

Link copied to clipboard

Updated timing for each stop on the trip.

Link copied to clipboard

POSIX timestamp when this update was generated.

Link copied to clipboard

Trip this update applies to.

Link copied to clipboard

Realtime property overrides for the trip.

Link copied to clipboard

Vehicle serving this trip.