Route

data class Route(val routeId: String, val agencyId: String? = null, val routeShortName: String? = null, val routeLongName: String? = null, val routeDesc: String? = null, val routeType: RouteType, val routeUrl: Url? = null, val routeColor: RgbColorTriplet? = null, val routeTextColor: RgbColorTriplet? = null, val routeSortOrder: Int? = null, val continuousPickup: ContinuousPickupDropOff? = null, val continuousDropOff: ContinuousPickupDropOff? = null, val networkId: String? = null, val cemvSupport: TriState? = null)(source)

Transit routes. A route is a group of trips that are displayed to riders as a single service.

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

Constructors

Link copied to clipboard
constructor(routeId: String, agencyId: String? = null, routeShortName: String? = null, routeLongName: String? = null, routeDesc: String? = null, routeType: RouteType, routeUrl: Url? = null, routeColor: RgbColorTriplet? = null, routeTextColor: RgbColorTriplet? = null, routeSortOrder: Int? = null, continuousPickup: ContinuousPickupDropOff? = null, continuousDropOff: ContinuousPickupDropOff? = null, networkId: String? = null, cemvSupport: TriState? = null)

Properties

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

Agency for the specified route.

Link copied to clipboard
@SerialName(value = "cemv_support")
val cemvSupport: TriState?

Indicates if riders can access a transit service associated with this route by using a contactless EMV card or mobile device as fare media at a fare validator.

Link copied to clipboard
@SerialName(value = "continuous_drop_off")
val continuousDropOff: ContinuousPickupDropOff?

Indicates continuous drop off behavior.

Link copied to clipboard
@SerialName(value = "continuous_pickup")
val continuousPickup: ContinuousPickupDropOff?

Indicates continuous pickup behavior.

Link copied to clipboard
@SerialName(value = "network_id")
val networkId: String?

Network ID to which a route belongs.

Link copied to clipboard
@SerialName(value = "route_color")
val routeColor: RgbColorTriplet?

Route color designation.

Link copied to clipboard
@SerialName(value = "route_desc")
val routeDesc: String?

Description of a route.

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

Uniquely identifies a route.

Link copied to clipboard
@SerialName(value = "route_long_name")
val routeLongName: String?

Full name of a route.

Link copied to clipboard
@SerialName(value = "route_short_name")
val routeShortName: String?

Short name of a route.

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

Order in which route should be displayed. Routes with smaller values should be displayed first.

Link copied to clipboard
@SerialName(value = "route_text_color")
val routeTextColor: RgbColorTriplet?

Legible color to use for text drawn against route_color.

Link copied to clipboard
@SerialName(value = "route_type")
val routeType: RouteType

Type of transportation used on a route.

Link copied to clipboard
@SerialName(value = "route_url")
val routeUrl: Url?

URL of a web page about the particular route.