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

Shared vehicles

  • Undocumented

    See more

    Declaration

    Swift

    public struct VehicleTypeInfo : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct SharedVehicleInfo : Codable, Hashable
  • BikePodInfo From TripKit

    Undocumented

    See more

    Declaration

    Swift

    public struct BikePodInfo : Codable, Hashable, RealTimeUpdatable
  • CarPodInfo From TripKit

    Undocumented

    See more

    Declaration

    Swift

    public struct CarPodInfo : Codable, Hashable, RealTimeUpdatable
  • CarParkInfo From TripKit

    Undocumented

    See more

    Declaration

    Swift

    public struct CarParkInfo : Codable, Hashable, RealTimeUpdatable
  • CarRentalInfo From TripKit

    Undocumented

    See more

    Declaration

    Swift

    public struct CarRentalInfo : Codable, Hashable, RealTimeUpdatable
  • OnStreetParkingInfo From TripKit

    Undocumented

    See more

    Declaration

    Swift

    public struct OnStreetParkingInfo : Codable, Hashable, RealTimeUpdatable
  • LocationInfo From TripKit

    Undocumented

    See more

    Declaration

    Swift

    public struct LocationInfo : Codable, Hashable, RealTimeUpdatable
  • LocationsResponse From TripKit

    Undocumented

    See more

    Declaration

    Swift

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

Data Model

  • BookingAvailability From TripKit

    Undocumented

    See more

    Declaration

    Swift

    public struct BookingAvailability : Codable, Hashable
  • AvailabilityMode From TripKit

    Undocumented

    See more

    Declaration

    Swift

    public enum AvailabilityMode : String, Codable
  • CarAvailability From TripKit

    Undocumented

    See more

    Declaration

    Swift

    public struct CarAvailability : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public enum RoadTag : String, Codable
  • Undocumented

    See more

    Declaration

    Swift

    public enum RoadSafety : Comparable
  • Undocumented

    See more

    Declaration

    Swift

    public struct CompanyInfo : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Location : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

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

    Declaration

    Swift

    public typealias Degrees = CLLocationDegrees
  • Undocumented

    Declaration

    Swift

    public typealias Direction = CLLocationDirection
  • Undocumented

    Declaration

    Swift

    public typealias Distance = CLLocationDistance
  • Undocumented

    Declaration

    Swift

    public typealias Speed = CLLocationSpeed
  • Undocumented

    See more

    Declaration

    Swift

    public struct AppInfo : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct DataAttribution : 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 LatestResponse : Codable
  • Undocumented

    See more

    Declaration

    Swift

    public struct LatestService : Codable
  • Undocumented

    See more

    Declaration

    Swift

    public struct LatestStop : Codable
  • 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
  • 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 RegionsResponse : Codable
  • Undocumented

    See more

    Declaration

    Swift

    public struct ModeDetails : Codable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Route : Codable, Hashable
  • Undocumented

    See more

    Declaration

    Swift

    public struct RouteDirection : 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
  • Ticket information, for public transport segments

    See more

    Declaration

    Swift

    public struct Ticket : 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 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

    See more

    Declaration

    Swift

    public struct PrivateVehicle : Codable, Hashable