TKVehicular

public protocol TKVehicular

Undocumented

  • Optional name to use in the UI to refer to this vehicle.

    Declaration

    Swift

    var name: String? { get }
  • What kind of vehicle it is. Required field.

    Declaration

    Swift

    var vehicleType: TKVehicleType { get }
  • Where this vehicle is garaged. Can be nil but the algorithms won’t try to take it back to the garage then.

    Note

    nil is the same as getting a lift with someone

    Declaration

    Swift

    var garage: MKAnnotation? { get }
  • The unique identifier that identifies this vehicle.

    Note

    Getting a lift instances don’t have a UUID

    Declaration

    Swift

    var vehicleID: UUID? { get }
  • isCarPooling Extension method

    Undocumented

    Declaration

    Swift

    public var isCarPooling: Bool { get }
  • icon Extension method

    Undocumented

    Declaration

    Swift

    public var icon: TKImage? { get }
  • title Extension method

    Undocumented

    Declaration

    Swift

    public var title: String { get }

Private vehicles

  • toModel() Extension method

    Undocumented

    Declaration

    Swift

    public func toModel() -> TKAPI.PrivateVehicle