TripModifications

data class TripModifications(val selectedTrips: List<TripModifications.SelectedTrips> = emptyList(), val startTimes: List<String> = emptyList(), val serviceDates: List<String> = emptyList(), val modifications: List<TripModifications.Modification> = emptyList())(source)

Realtime trip modifications such as detours.

Constructors

Link copied to clipboard
constructor(selectedTrips: List<TripModifications.SelectedTrips> = emptyList(), startTimes: List<String> = emptyList(), serviceDates: List<String> = emptyList(), modifications: List<TripModifications.Modification> = emptyList())

Types

Link copied to clipboard
data class Modification(val startStopSelector: StopSelector? = null, val endStopSelector: StopSelector? = null, val propagatedModificationDelay: Int = 0, val replacementStops: List<ReplacementStop> = emptyList(), val serviceAlertId: String? = null, val lastModifiedTime: Long? = null)

A replacement applied to a span of stops on the original trip.

Link copied to clipboard
data class SelectedTrips(val tripIds: List<String> = emptyList(), val shapeId: String? = null)

A set of trips affected by this modification set.

Properties

Link copied to clipboard

Ordered list of modifications to apply.

Link copied to clipboard

Trips affected by these modifications.

Link copied to clipboard

Service dates when modifications apply, in YYYYMMDD format.

Link copied to clipboard

Exact start times of the affected trips in HH:MM:SS format.