VehicleOccupancy

public enum VehicleOccupancy : String, Codable, Hashable

Representation of real-time occupancy information for public transport

  • Undocumented

    Declaration

    Swift

    case unknown = "UNKNOWN"
  • Undocumented

    Declaration

    Swift

    case empty = "EMPTY"
  • Undocumented

    Declaration

    Swift

    case manySeatsAvailable = "MANY_SEATS_AVAILABLE"
  • Undocumented

    Declaration

    Swift

    case fewSeatsAvailable = "FEW_SEATS_AVAILABLE"
  • Undocumented

    Declaration

    Swift

    case standingRoomOnly = "STANDING_ROOM_ONLY"
  • Undocumented

    Declaration

    Swift

    case crushedStandingRoomOnly = "CRUSHED_STANDING_ROOM_ONLY"
  • Undocumented

    Declaration

    Swift

    case full = "FULL"
  • Undocumented

    Declaration

    Swift

    case notAcceptingPassengers = "NOT_ACCEPTING_PASSENGERS"
  • Declaration

    Swift

    public static func average(in all: [[TKAPI.VehicleComponents]]?) -> (TKAPI.VehicleOccupancy, title: String)?

    Parameters

    all

    Nested vehicle components

    Return Value

    Average occupancy in the provided nested list of vehicle components, nil if no occupancy found.

  • Undocumented

    Declaration

    Swift

    public var color: TKColor? { get }
  • Undocumented

    Declaration

    Swift

    public var localizedTitle: String { get }

Real-time vehicles

  • Undocumented

    Declaration

    Swift

    public init(intValue: Int)