Frequency

data class Frequency(val tripId: String, val startTime: ServiceTime, val endTime: ServiceTime, val headwaySecs: WholeSeconds, val exactTimes: IntBoolean? = null)(source)

Headway (time between trips) for routes with variable frequency of service.

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

Constructors

Link copied to clipboard
constructor(tripId: String, startTime: ServiceTime, endTime: ServiceTime, headwaySecs: WholeSeconds, exactTimes: IntBoolean? = null)

Properties

Link copied to clipboard
@SerialName(value = "end_time")
val endTime: ServiceTime

Time at which service changes to a different headway (or ceases) at the first stop in the trip.

Link copied to clipboard
@SerialName(value = "exact_times")
val exactTimes: IntBoolean?

Indicates the type of service for a trip. When false (0), frequency-based trips are not exactly scheduled. When true (1), schedule-based trips with exact times. Defaults to false when null or empty.

Link copied to clipboard
@SerialName(value = "headway_secs")
val headwaySecs: WholeSeconds

Time between departures from the same stop (headway) for the trip.

Link copied to clipboard
@SerialName(value = "start_time")
val startTime: ServiceTime

Time at which the first vehicle departs from the first stop of the trip.

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

Identifies a trip to which the specified headway of service applies.