PTTrip constructor
- 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,
Create a PTTrip.
API users do not typically create instances of this class directly.
Parameters
route: (PTRouteInfo) The associated public route.agency: (PTAgency) The operating agency.tripIndex: (int) Internal trip index.tripDate: (DateTime?) Trip date (UTC flag, local value).hasRealtime: (bool) Whether realtime data is available.departureTime: (DateTime?) Departure time (UTC flag, local value).isCancelled: (bool?) Cancellation flag.delayMinutes: (int?) Delay in minutes when realtime data applies.stopTimes: (List<PTStopTime>) Stop times for the trip.stopIndex: (int) Index of the current stop in the stopTimes list.stopPlatformCode: (String?) Platform code for the stop.isWheelchairAccessible: (bool) Wheelchair accessibility flag.isBikeAllowed: (bool) Bike allowance flag.
Implementation
PTTrip({
required this.route,
required this.agency,
required this.tripIndex,
required this.tripDate,
required this.hasRealtime,
required this.departureTime,
this.isCancelled,
this.delayMinutes,
required this.stopTimes,
required this.stopIndex,
this.stopPlatformCode,
required this.isWheelchairAccessible,
required this.isBikeAllowed,
});