FareLegJoinRule

data class FareLegJoinRule(val fromNetworkId: String, val toNetworkId: String, val fromStopId: String? = null, val toStopId: String? = null)(source)

Defines when two consecutive legs with a transfer should be considered as a single effective fare leg.

This class represents a record in the fare_leg_join_rules.txt file.

Constructors

Link copied to clipboard
constructor(fromNetworkId: String, toNetworkId: String, fromStopId: String? = null, toStopId: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "from_network_id")
val fromNetworkId: String

Matches a pre-transfer leg that uses the specified route network.

Link copied to clipboard
@SerialName(value = "from_stop_id")
val fromStopId: String?

Matches a pre-transfer leg that ends at the specified stop or station.

Link copied to clipboard
@SerialName(value = "to_network_id")
val toNetworkId: String

Matches a post-transfer leg that uses the specified route network.

Link copied to clipboard
@SerialName(value = "to_stop_id")
val toStopId: String?

Matches a post-transfer leg that starts at the specified stop or station.