Ticket

public struct Ticket : Codable, Hashable

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 nil for re-used tickets

    Declaration

    Swift

    public let cost: Decimal?