Transit Leg
data class TransitLeg(distance: Distance, path: PathGeometry, fallbackDuration: Duration?, stops: List<LegStop>, departure: Departure, allServiceOptions: List<Service>, allDepartureOptions: List<Departure>, statuses: List<Status>?, legDepartureTime: Date?, legArrivalTime: Date?, directionDescription: String?, bestBoardingSections: List<BoardingSection>?) : VehicleLeg, HasService
Content copied to clipboard
A leg of a Journey involving taking transit. This leg usually represents a specific departure, but may include some information about alternative routes which may be taken.
Only in the case that the departure is a FrequencyDeparture, it may represent an average headway which includes all alternative routes.
Constructors
Link copied to clipboard
fun TransitLeg(distance: Distance, path: PathGeometry, fallbackDuration: Duration?, stops: List<LegStop>, departure: Departure, allServiceOptions: List<Service>, allDepartureOptions: List<Departure>, statuses: List<Status>?, legDepartureTime: Date?, legArrivalTime: Date?, directionDescription: String?, bestBoardingSections: List<BoardingSection>?)
Content copied to clipboard