FareRule

data class FareRule(val fareId: String, val routeId: String? = null, val originId: String? = null, val destinationId: String? = null, val containsId: String? = null)(source)

Rules to apply fares for itineraries.

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

The fare_rules.txt table specifies how fares in fare_attributes.txt apply to an itinerary. Most fare structures use some combination of the following rules:

  • Fare depends on origin or destination stations.

  • Fare depends on which zones the itinerary passes through.

  • Fare depends on which route the itinerary uses.

Constructors

Link copied to clipboard
constructor(fareId: String, routeId: String? = null, originId: String? = null, destinationId: String? = null, containsId: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "contains_id")
val containsId: String?

Identifies the zones that a rider will enter while using a given fare class.

Link copied to clipboard
@SerialName(value = "destination_id")
val destinationId: String?

Identifies a destination zone.

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

Identifies a fare class.

Link copied to clipboard
@SerialName(value = "origin_id")
val originId: String?

Identifies an origin zone.

Link copied to clipboard
@SerialName(value = "route_id")
val routeId: String?

Identifies a route associated with the fare class.