Constructor for the PTTrip class.
The agency associated with the trip.
OptionaldelayThe delay in minutes. This can be null if hasRealtime is false.
OptionaldepartureThe departure time of the trip.
A flag indicating if real-time information is available.
A flag indicating if bikes are allowed on the trip.
OptionalisAn optional flag indicating if the trip is cancelled.
A flag indicating if the stop is wheelchair accessible.
The route associated with the trip.
The index of the stop in the trip. This is the index of the stop in the list of stop times.
OptionalstopThe platform code of the stop.
A list of stop times associated with the trip.
Optional ReadonlytripThe date of the trip.
ReadonlytripThe index of the trip.
This class represents a public transport trip.
It contains the route, agency, trip index, trip date, departure time, a flag indicating if real-time information is available, an optional cancellation flag, delay in minutes, a list of stop times, stop index, stop platform code, and flags indicating if wheelchair access and bike allowance are available.
The trip is associated with a specific route and agency.