ServiceCalendar

data class ServiceCalendar(val serviceId: String, val monday: IntBoolean, val tuesday: IntBoolean, val wednesday: IntBoolean, val thursday: IntBoolean, val friday: IntBoolean, val saturday: IntBoolean, val sunday: IntBoolean, val startDate: BasicLocalDate, val endDate: BasicLocalDate)(source)

Service dates specified using a weekly schedule with start and end dates.

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

Constructors

Link copied to clipboard
constructor(serviceId: String, monday: IntBoolean, tuesday: IntBoolean, wednesday: IntBoolean, thursday: IntBoolean, friday: IntBoolean, saturday: IntBoolean, sunday: IntBoolean, startDate: BasicLocalDate, endDate: BasicLocalDate)

Properties

Link copied to clipboard
@SerialName(value = "end_date")
val endDate: BasicLocalDate

End service day (inclusive) for the service interval.

Link copied to clipboard
@SerialName(value = "friday")
val friday: IntBoolean

Indicates whether the service operates on all Fridays in the date range.

Link copied to clipboard
@SerialName(value = "monday")
val monday: IntBoolean

Indicates whether the service operates on all Mondays in the date range.

Link copied to clipboard
@SerialName(value = "saturday")
val saturday: IntBoolean

Indicates whether the service operates on all Saturdays in the date range.

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

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

Link copied to clipboard
@SerialName(value = "start_date")
val startDate: BasicLocalDate

Start service day for the service interval.

Link copied to clipboard
@SerialName(value = "sunday")
val sunday: IntBoolean

Indicates whether the service operates on all Sundays in the date range.

Link copied to clipboard
@SerialName(value = "thursday")
val thursday: IntBoolean

Indicates whether the service operates on all Thursdays in the date range.

Link copied to clipboard
@SerialName(value = "tuesday")
val tuesday: IntBoolean

Indicates whether the service operates on all Tuesdays in the date range.

Link copied to clipboard
@SerialName(value = "wednesday")
val wednesday: IntBoolean

Indicates whether the service operates on all Wednesdays in the date range.