TransitTransport
public struct TransitTransport : Hashable
Holds all the transit transport information.
-
Transit mode of transport in the route.
Declaration
Swift
public var mode: TransitMode -
Transit line name.
Declaration
Swift
public var name: String? -
Transit line headsign.
Declaration
Swift
public var headsign: String? -
Human readable transport category (such as Bus, Gondola, Tram, Train, …)
Declaration
Swift
public var category: String? -
Color of the transport polyline and background for the transport name.
Declaration
Swift
public var color: UIColor? -
Color of the transport name.
Declaration
Swift
public var textColor: UIColor? -
Creates a new instance.
Declaration
Swift
public init(mode: TransitMode, name: String? = nil, headsign: String? = nil, category: String? = nil, color: UIColor? = nil, textColor: UIColor? = nil)