Vehicle
public struct Vehicle : Codable, Hashable
Undocumented
-
Undocumented
Declaration
Swift
public let location: Location
-
Undocumented
Declaration
Swift
public let id: String?
-
Undocumented
Declaration
Swift
public let label: String?
-
Undocumented
Declaration
Swift
public let icon: URL?
-
Undocumented
Declaration
Swift
public let lastUpdate: TimeInterval?
-
Components of this vehicle with additional information.
The top level array represents connected parts of the vehicle, which you can’t walk through without leaving the vehicle (e.g., two trains connected together). The inner level array represents then parts that can be walked through (e.g., the carriages of a train). A bus would have a
[[component1]]
. A train could have[[c1, c2, c3, c4], [c5, c6, c7, c8]]
.The arrays are ordered by direction of travel always being left-to-right, i.e., the front of the train is the very last element.
Declaration
Swift
public let components: [[VehicleComponents]]?