PTCrowdingInfo class Maps & 3D Scenes
Live vehicle crowding data derived from GTFS-RT vehicle positions.
Appears in two places:
- PTTrip.vehicle — the measured values reported by the vehicle running exactly that trip instance; vehicles is always null there.
- PTRouteInfo.liveCrowding — a summary over all the route's fresh vehicle positions: vehicles counts them and the other fields carry the WORST value over those vehicles (occupancy considers the PTOccupancyStatus.empty..PTOccupancyStatus.notAcceptingPassengers crowding scale only).
WARNING: Every field is optional, always — feeds and older realtime producers supply arbitrary subsets, so any combination of fields may be null.
Also see:
- PTTrip.vehicle — Live crowding for a specific departure.
- PTTrip.departureOccupancyStatus — Predicted occupancy for a departure.
- PTRouteInfo.liveCrowding — Live crowding summary for a route.
Constructors
- PTCrowdingInfo({int? vehicles, PTCongestionLevel? congestionLevel, PTOccupancyStatus? occupancyStatus, int? occupancyPercentage})
- Create a PTCrowdingInfo.
Properties
- congestionLevel → PTCongestionLevel?
-
Congestion level of the traffic the vehicle(s) travel in (may be null).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- occupancyPercentage → int?
-
Occupancy as a percentage of the vehicle capacity (may be null).
final
- occupancyStatus → PTOccupancyStatus?
-
Occupancy status of the vehicle(s) (may be null).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- vehicles → int?
-
Number of fresh vehicle positions on the route.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited