VehiclePosition
data class VehiclePosition(val trip: TripDescriptor? = null, val vehicle: VehicleDescriptor? = null, val position: Position? = null, val currentStopSequence: Int? = null, val stopId: String? = null, val currentStatus: VehiclePosition.VehicleStopStatus = VehicleStopStatus.InTransitTo, val timestamp: Long? = null, val congestionLevel: VehiclePosition.CongestionLevel? = null, val occupancyStatus: VehiclePosition.OccupancyStatus? = null, val occupancyPercentage: Int? = null, val multiCarriageDetails: List<VehiclePosition.CarriageDetails> = emptyList())(source)
Realtime positioning information for a vehicle.
Constructors
Link copied to clipboard
constructor(trip: TripDescriptor? = null, vehicle: VehicleDescriptor? = null, position: Position? = null, currentStopSequence: Int? = null, stopId: String? = null, currentStatus: VehiclePosition.VehicleStopStatus = VehicleStopStatus.InTransitTo, timestamp: Long? = null, congestionLevel: VehiclePosition.CongestionLevel? = null, occupancyStatus: VehiclePosition.OccupancyStatus? = null, occupancyPercentage: Int? = null, multiCarriageDetails: List<VehiclePosition.CarriageDetails> = emptyList())
Types
Link copied to clipboard
data class CarriageDetails(val id: String? = null, val label: String? = null, val occupancyStatus: VehiclePosition.OccupancyStatus = OccupancyStatus.NoDataAvailable, val occupancyPercentage: Int = -1, val carriageSequence: Int? = null)
Realtime details for a single carriage.
Link copied to clipboard
Traffic congestion affecting the vehicle.
Link copied to clipboard
Passenger occupancy state for the vehicle or carriage.
Link copied to clipboard
The vehicle's relationship to the current stop.
Properties
Link copied to clipboard
Traffic congestion affecting the vehicle.
Link copied to clipboard
Vehicle's relationship to the current stop.
Link copied to clipboard
GTFS stop_sequence of the current stop.
Link copied to clipboard
Per-carriage occupancy and identification details.
Link copied to clipboard
Passenger occupancy as a percentage of capacity.
Link copied to clipboard
Passenger occupancy status of the vehicle.
Link copied to clipboard
Trip the vehicle is serving.
Link copied to clipboard
Vehicle serving the trip.