Timeframe

data class Timeframe(val timeframeGroupId: String, val startTime: ServiceTime? = null, val endTime: ServiceTime? = null, val serviceId: String)(source)

Describes fares that can vary based on the time of day, the day of the week, or a particular day in the year.

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

Constructors

Link copied to clipboard
constructor(timeframeGroupId: String, startTime: ServiceTime? = null, endTime: ServiceTime? = null, serviceId: String)

Properties

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

Defines the end of a timeframe. An empty value is considered 24:00:00.

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

Identifies a set of dates that a timeframe is in effect.

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

Defines the beginning of a timeframe. An empty value is considered 00:00:00.

Link copied to clipboard
@SerialName(value = "timeframe_group_id")
val timeframeGroupId: String

Identifies a timeframe or set of timeframes.