Trip

data class Trip(val tripId: String, val routeId: String, val serviceId: String, val tripHeadsign: String? = null, val tripShortName: String? = null, val directionId: DirectionId? = null, val blockId: String? = null, val shapeId: String? = null, val wheelchairAccessible: TriState? = null, val bikesAllowed: TriState? = null, val carsAllowed: TriState? = null)(source)

Trips for each route. A trip is a sequence of two or more stops that occur during a specific time period.

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

Constructors

Link copied to clipboard
constructor(tripId: String, routeId: String, serviceId: String, tripHeadsign: String? = null, tripShortName: String? = null, directionId: DirectionId? = null, blockId: String? = null, shapeId: String? = null, wheelchairAccessible: TriState? = null, bikesAllowed: TriState? = null, carsAllowed: TriState? = null)

Properties

Link copied to clipboard
@SerialName(value = "bikes_allowed")
val bikesAllowed: TriState?

Indicates whether bikes are allowed.

Link copied to clipboard
@SerialName(value = "block_id")
val blockId: String?

Identifies the block to which the trip belongs.

Link copied to clipboard
@SerialName(value = "cars_allowed")
val carsAllowed: TriState?

Indicates whether cars are allowed.

Link copied to clipboard
@SerialName(value = "direction_id")
val directionId: DirectionId?

Indicates the direction of travel for a trip.

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

Identifies a route.

Link copied to clipboard
@SerialName(value = "service_id")
val serviceId: String

Identifies a set of dates when service is available for one or more routes.

Link copied to clipboard
@SerialName(value = "shape_id")
val shapeId: String?

Identifies a geospatial shape describing the vehicle travel path for a trip.

Link copied to clipboard
@SerialName(value = "trip_headsign")
val tripHeadsign: String?

Text that appears on signage identifying the trip's destination to riders.

Link copied to clipboard
@SerialName(value = "trip_id")
val tripId: String

Uniquely identifies a trip.

Link copied to clipboard
@SerialName(value = "trip_short_name")
val tripShortName: String?

Public facing text used to identify the trip to riders.

Link copied to clipboard
@SerialName(value = "wheelchair_accessible")
val wheelchairAccessible: TriState?

Indicates wheelchair accessibility.