PTTrip class Maps & 3D Scenes

A scheduled public transport trip instance.

Represents a single scheduled run of a route with times, delays, cancellation and accessibility metadata.

Also see:

  • PTStopInfo.trips — The list of trips for a stop info.
  • PTTrip.route — The route associated with a specific trip.

Constructors

PTTrip({required PTRouteInfo route, required PTAgency agency, required int tripIndex, required DateTime? tripDate, required bool hasRealtime, required DateTime? departureTime, bool? isCancelled, int? delayMinutes, required List<PTStopTime> stopTimes, required int stopIndex, String? stopPlatformCode, required bool isWheelchairAccessible, required bool isBikeAllowed, List<PTAlertInfo> alerts = const <PTAlertInfo>[], PTCrowdingInfo? vehicle, PTOccupancyStatus? departureOccupancyStatus})
Create a PTTrip.

Properties

agency PTAgency
The agency operating the trip.
getter/setter pair
alerts List<PTAlertInfo>
GTFS-RT service alerts applicable to this trip.
final
delayMinutes int?
Delay in minutes (may be null).
getter/setter pair
departureOccupancyStatus PTOccupancyStatus?
Predicted occupancy after departing this stop (may be null).
getter/setter pair
departureTime DateTime?
Departure time (UTC flag, local value).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasRealtime bool
Whether realtime information is available.
getter/setter pair
isBikeAllowed bool
Indicates whether bikes are allowed on the trip.
getter/setter pair
isCancelled bool?
Optional cancellation flag.
getter/setter pair
isWheelchairAccessible bool
Wheelchair accessibility flag.
getter/setter pair
route PTRouteInfo
The route associated with the trip.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stopIndex int
Index of the current/selected stop within stopTimes.
getter/setter pair
stopPlatformCode String?
Platform code for the stop (may be null).
getter/setter pair
stopTimes List<PTStopTime>
The list of stop times for this trip.
getter/setter pair
tripDate DateTime?
Trip date (UTC flag, local value).
final
tripIndex int
Internal trip index.
final
vehicle PTCrowdingInfo?
Live crowding of the vehicle running this trip (may be null).
getter/setter pair

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