Ticket

public struct Ticket : Codable

Ticket information, for public transport segments

  • User-friendly name of the ticket

    Declaration

    Swift

    public let name: String
  • ID of the ticket, where available this is the same as defined in GTFS

    Declaration

    Swift

    public let fareID: String?
  • Cost of the ticket, in the currency of the trip

    Declaration

    Swift

    public let cost: Decimal