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
  • Declaration

    Swift

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

    See more

    Declaration

    Swift

    public struct AlertMapping : Codable, Hashable
  • Declaration

    Swift

    public struct Route : Codable, Hashable
  • Declaration

    Swift

    public struct CompanyInfo : Codable, Hashable
  • Declaration

    Swift

    public struct DataAttribution : Codable, Hashable
  • Declaration

    Swift

    public struct Location : Codable, Hashable
  • Declaration

    Swift

    public enum RealTimeStatus : String, Codable, Equatable
  • Declaration

    Swift

    public struct RGBColor : Codable, Hashable
  • Declaration

    Swift

    public struct Departures : Codable, Hashable
  • Declaration

    Swift

    public struct EventsResponse : Codable, Hashable
  • Declaration

    Swift

    public enum SharedVehicleType : String, Codable
  • Declaration

    Swift

    public struct BikePodInfo : Codable, Hashable, RealTimeUpdatable
  • Declaration

    Swift

    public struct CarPodInfo : Codable, Hashable, RealTimeUpdatable
  • Declaration

    Swift

    public struct CarParkInfo : Codable, Hashable, RealTimeUpdatable
  • Declaration

    Swift

    public struct CarRentalInfo : Codable, Hashable, RealTimeUpdatable
  • Declaration

    Swift

    public struct SharedVehicleInfo : Codable, Hashable, RealTimeUpdatable
  • Declaration

    Swift

    public struct OnStreetParkingInfo : Codable, Hashable, RealTimeUpdatable
  • Declaration

    Swift

    public struct LocationInfo : Codable, Hashable, RealTimeUpdatable
  • Declaration

    Swift

    public struct LocationsResponse : Codable, Hashable
  • 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
  • Formerly known as TKRegionInfo

    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
  • 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
  • Declaration

    Swift

    public struct Departure : Codable, Hashable
  • 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

Private vehicles

  • Declaration

    Swift

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

    Declaration

    Swift

    public struct PrivateVehicle : Codable