GenericModeDetails

public struct GenericModeDetails : Codable, Hashable

Additional details about a group of modes, e.g., all bike or car share providers in a city

  • Name of the group

    Declaration

    Swift

    public let title: String
  • Additional info about the mode group

    Declaration

    Swift

    public let modeInfo: TKModeInfo
  • The specific modes of this group that are available for your API key.

    Declaration

    Swift

    @DefaultEmptyArray
    public var specificModes: [SpecificModeDetails] { get set }
  • Additional specific modes that are available on the platform, but not currently available for your API key.

    See https://developer.tripgo.com/extensions/ for how to unlock them, or get in touch with someone from the TripGo API team.

    Declaration

    Swift

    @DefaultEmptyArray
    public var lockedModes: [SpecificModeDetails] { get set }