Pathway

data class Pathway(val pathwayId: String, val fromStopId: String, val toStopId: String, val pathwayMode: PathwayMode, val isBidirectional: IntBoolean, val length: Double? = null, val traversalTime: WholeSeconds? = null, val stairCount: Int? = null, val maxSlope: Double? = null, val minWidth: Double? = null, val signpostedAs: String? = null, val reversedSignpostedAs: String? = null)(source)

Pathways linking together locations within stations.

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

Constructors

Link copied to clipboard
constructor(pathwayId: String, fromStopId: String, toStopId: String, pathwayMode: PathwayMode, isBidirectional: IntBoolean, length: Double? = null, traversalTime: WholeSeconds? = null, stairCount: Int? = null, maxSlope: Double? = null, minWidth: Double? = null, signpostedAs: String? = null, reversedSignpostedAs: String? = null)

Properties

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

Location at which the pathway begins.

Link copied to clipboard
@SerialName(value = "is_bidirectional")
val isBidirectional: IntBoolean

Indicates whether the pathway can be used in both directions.

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

Horizontal length in meters of the pathway from the origin location to the destination.

Link copied to clipboard
@SerialName(value = "max_slope")
val maxSlope: Double?

Maximum slope ratio of the pathway.

Link copied to clipboard
@SerialName(value = "min_width")
val minWidth: Double?

Minimum width of the pathway in meters.

Link copied to clipboard
@SerialName(value = "pathway_id")
val pathwayId: String

Uniquely identifies a pathway.

Link copied to clipboard
@SerialName(value = "pathway_mode")
val pathwayMode: PathwayMode

Type of pathway between the specified from_stop_id and to_stop_id.

Link copied to clipboard
@SerialName(value = "reversed_signposted_as")
val reversedSignpostedAs: String?

Text from physical signage visible to riders when the pathway is used from the to_stop to the from_stop.

Link copied to clipboard
@SerialName(value = "signposted_as")
val signpostedAs: String?

Public-facing text from physical signage visible to riders.

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

Number of stairs of the pathway.

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

Location at which the pathway ends.

Link copied to clipboard
@SerialName(value = "traversal_time")
val traversalTime: WholeSeconds?

Average time in seconds needed to walk through the pathway from the origin to destination.