Transfer

data class Transfer(val fromStopId: String? = null, val toStopId: String? = null, val fromRouteId: String? = null, val toRouteId: String? = null, val fromTripId: String? = null, val toTripId: String? = null, val transferType: TransferType? = null, val minTransferTime: WholeSeconds? = null)(source)

Rules and overrides for selected transfers between stops and routes.

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

Constructors

Link copied to clipboard
constructor(fromStopId: String? = null, toStopId: String? = null, fromRouteId: String? = null, toRouteId: String? = null, fromTripId: String? = null, toTripId: String? = null, transferType: TransferType? = null, minTransferTime: WholeSeconds? = null)

Properties

Link copied to clipboard
@SerialName(value = "from_route_id")
val fromRouteId: String?

Identifies a route where a connection begins. If defined, the transfer will apply to the arriving trip on the route for the given from_stop_id.

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

Identifies a stop or station where a connection between routes begins. If this field refers to a station, the transfer rule applies to all its child stops.

Link copied to clipboard
@SerialName(value = "from_trip_id")
val fromTripId: String?

Identifies a trip where a connection between routes begins. If defined, the transfer will apply to the arriving trip for the given from_stop_id.

Link copied to clipboard
@SerialName(value = "min_transfer_time")
val minTransferTime: WholeSeconds?

Amount of time, in seconds, that must be available to permit a transfer between routes at the specified stops.

Link copied to clipboard
@SerialName(value = "to_route_id")
val toRouteId: String?

Identifies a route where a connection ends. If defined, the transfer will apply to the departing trip on the route for the given to_stop_id.

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

Identifies a stop or station where a connection between routes ends. If this field refers to a station, the transfer rule applies to all child stops.

Link copied to clipboard
@SerialName(value = "to_trip_id")
val toTripId: String?

Identifies a trip where a connection between routes ends. If defined, the transfer will apply to the departing trip for the given to_stop_id.

Link copied to clipboard
@SerialName(value = "transfer_type")
val transferType: TransferType?

Indicates the type of connection for the specified (from_stop_id, to_stop_id) pair.