FareAttribute

data class FareAttribute(val fareId: String, val price: Double, val currencyType: CurrencyCode, val paymentMethod: PaymentMethod, val transfers: Int?, val agencyId: String? = null, val transferDuration: WholeSeconds? = null)(source)

Fare information for a transit agency's routes.

This class represents a record in the fare_attributes.txt file (GTFS-Fares V1).

Constructors

Link copied to clipboard
constructor(fareId: String, price: Double, currencyType: CurrencyCode, paymentMethod: PaymentMethod, transfers: Int?, agencyId: String? = null, transferDuration: WholeSeconds? = null)

Properties

Link copied to clipboard
@SerialName(value = "agency_id")
val agencyId: String?

Identifies the relevant agency for a fare.

Link copied to clipboard
@SerialName(value = "currency_type")
val currencyType: CurrencyCode

Currency used to pay the fare.

Link copied to clipboard
@SerialName(value = "fare_id")
val fareId: String

Identifies a fare class.

Link copied to clipboard
@SerialName(value = "payment_method")
val paymentMethod: PaymentMethod

Indicates when the fare must be paid.

Link copied to clipboard
@SerialName(value = "price")
val price: Double

Fare price, in the unit specified by currency_type.

Link copied to clipboard
@SerialName(value = "transfer_duration")
val transferDuration: WholeSeconds?

Length of time in seconds before a transfer expires.

Link copied to clipboard
@SerialName(value = "transfers")
val transfers: Int?

Indicates the number of transfers permitted on this fare. When null, unlimited transfers are permitted.