TKAPI

public struct TKAPI

Top-Level Namespace for model structs that directly correspond to the TripGo API.

Real-time vehicles

  • Representation of real-time occupancy information for public transport

    See more

    Declaration

    Swift

    public enum VehicleOccupancy : String, Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct VehicleTypeInfo : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct SharedVehicleInfo : Codable, Hashable, RealTimeUpdatable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Alert : Codable, Hashable
  • Replaces the previous TKAlertWrapper

    See more

    Declaration

    Swift

    public struct AlertMapping : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct AlertRouteMapping : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct CompanyInfo : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct DataAttribution : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Location : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public enum RealTimeStatus : String, Codable, Equatable
  • Undocumented

    See more

    Declaration

    Swift

    public struct RGBColor : Codable, Hashable
  • Output data model for departures.json

    See more

    Declaration

    Swift

    public struct Departures : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct EventsResponse : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct BikePodInfo : Codable, Hashable, RealTimeUpdatable
  • Undocumented

    See more

    Declaration

    Swift

    public struct CarPodInfo : Codable, Hashable, RealTimeUpdatable
  • Undocumented

    See more

    Declaration

    Swift

    public struct CarParkInfo : Codable, Hashable, RealTimeUpdatable
  • Undocumented

    See more

    Declaration

    Swift

    public struct CarRentalInfo : Codable, Hashable, RealTimeUpdatable
  • Undocumented

    See more

    Declaration

    Swift

    public enum VehicleFormFactor : String, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public enum VehiclePropulsionType : String, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public struct OnStreetParkingInfo : Codable, Hashable, RealTimeUpdatable
  • Undocumented

    See more

    Declaration

    Swift

    public struct LocationInfo : Codable, Hashable, RealTimeUpdatable
  • Undocumented

    See more

    Declaration

    Swift

    public struct LocationsResponse : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct OpeningHours : Codable, Hashable
  • Representation of a pricing table

    Matches PricingTable from the tripgo-api

    See more

    Declaration

    Swift

    public struct PricingTable : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct RegionInfo : Codable, Hashable
  • Informational class for paratransit information (i.e., transport for people with disabilities). Contains name of service, URL with more information and phone number.

    Formerly known as TKParatransitInfo

    See also

    TKBuzzInfoProvider‘s fetchParatransitInformation
    See more

    Declaration

    Swift

    public struct Paratransit : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public enum Integrations : String, Codable
  • Additional details about a group of modes, e.g., all bike or car share providers in a city

    See more

    Declaration

    Swift

    public struct GenericModeDetails : Codable, Hashable
  • Additional details about a specific mode, where the specific mode usually relates to a certain transport provider, such as a car-sharing provider, bike-sharing provider, limousine company, or TNC.

    See more

    Declaration

    Swift

    public struct SpecificModeDetails : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Route : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Direction : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct DirectionStop : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct RoutingResponse : Codable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Query : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct TripGroup : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Trip : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public enum TripAvailability : String, Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct SegmentReference : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct SegmentTemplate : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public enum SegmentVisibility : String, Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public enum SegmentType : String, Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct TripNotification : Hashable
    extension TKAPI.TripNotification: Codable
  • Undocumented

    See more

    Declaration

    Swift

    public struct SegmentShape : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct ShapeStop : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public enum ShapeInstruction : String, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public struct ServiceResponse : Codable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Departure : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Vehicle : Codable, Hashable
  • Components of a vehicle, typically provided as a nested array, see Vehicle.components

    See more

    Declaration

    Swift

    public struct VehicleComponents : Codable, Hashable

Data Model

  • Undocumented

    See more

    Declaration

    Swift

    public struct BookingAvailability : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct AppInfo : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public enum AvailabilityMode : String, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public struct CarAvailability : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Stop : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Operator : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct User : Codable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Phone : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Email : Codable, Hashable

Private vehicles

  • Undocumented

    See more

    Declaration

    Swift

    public enum PrivateVehicleType : String, Codable
  • The TripGo API-compliant dictionary representation of a vehicle

    Declaration

    Swift

    public struct PrivateVehicle : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct ServerError : Codable