vehicle property

PTCrowdingInfo? vehicle
getter/setter pair

Live crowding of the vehicle running this trip (may be null).

Present when a fresh vehicle position reports exactly this trip instance — usually only for the currently running vehicle; upcoming departures typically have none. PTCrowdingInfo.vehicles is always null here.

When both this and departureOccupancyStatus are present, the values here are measured (live) — prefer them for the current vehicle and departureOccupancyStatus for upcoming departures.

Implementation

PTCrowdingInfo? vehicle;