TransitSectionDetails
public struct TransitSectionDetails : Hashable
Gives the details of a transit section.
-
Transit transport information.
Declaration
Swift
public var transport: TransitTransport? -
All the intermediate stops between departure and destination of this section.
Declaration
Swift
public var intermediateStops: [TransitStop] -
Contains information about a particular agency.
Declaration
Swift
public var agency: Agency -
List of required attributions to display.
Declaration
Swift
public var attributions: [Attribution] -
List of tickets to pay for this section of the route.
Note: Currently, fare information is not supported and the list will be always empty.
Declaration
Swift
public var fares: [Fare] -
A list of all incidents that apply to the section.
Declaration
Swift
public var incidents: [TransitIncident] -
Creates a new instance.
Parameters
- transport: Transit transport information.
- intermediateStops: All the intermediate stops between departure and destination of this section.
- agency: Contains information about a particular agency.
- attributions: List of required attributions to display.
- fares: List of tickets to pay for this section of the route.
Note: Currently, fare information is not supported and the list will be always empty.
- incidents: A list of all incidents that apply to the section.
Declaration
Swift
public init(transport: TransitTransport? = nil, intermediateStops: [TransitStop] = [], agency: Agency, attributions: [Attribution] = [], fares: [Fare] = [], incidents: [TransitIncident] = [])