OpeningHours

data class OpeningHours(val ranges: List<ClosedRange<Date>>, val mode: OpeningHoursMode = OpeningHoursMode.NextSevenDays)

Opening hours for a Point Of Interest.

Parameters

ranges

The list of sequential time intervals, that describes opening hours.

mode

Defines the OpeningHoursMode, that the opening hours were requested in. By default OpeningHoursMode.NextSevenDays is applied.

Constructors

Link copied to clipboard
constructor(ranges: List<ClosedRange<Date>>, mode: OpeningHoursMode = OpeningHoursMode.NextSevenDays)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the opening hours for the given day in the POI local time

Link copied to clipboard
fun isOpen(date: Date): Boolean

Checks if the POI is open at the specified date and time.