Hours

@Serializable
data class Hours(val twentyFourSeven: Boolean, val regularHours: List<RegularHours> = emptyList(), val exceptionalOpenings: ExceptionalPeriod? = null, val exceptionalClosings: ExceptionalPeriod? = null)

Opening and access hours of the location.

Parameters

twentyFourSeven

True to represent 24 hours a day and 7 days a week, except the given exceptions.

regularHours

Regular hours, weekday-based. Only to be used if twentyFourSeven=false, then this field needs to contain at least one RegularHours object.

exceptionalOpenings

Exceptions for specified calendar dates, time-range based. Periods the station is operating/accessible. Additional to regularHours. May overlap regular rules.

exceptionalClosings

Exceptions for specified calendar dates, time-range based. Periods the station is not operating/accessible. Overwriting regularHours and exceptionalOpenings. Should not overlap exceptional_openings.

Constructors

Link copied to clipboard
constructor(twentyFourSeven: Boolean, regularHours: List<RegularHours> = emptyList(), exceptionalOpenings: ExceptionalPeriod? = null, exceptionalClosings: ExceptionalPeriod? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard