OpeningHours

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

Opening hours for a Point Of Interest.

Important: This is a Public Preview API. It may be changed or removed at any time.

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
fun OpeningHours(ranges: List<ClosedRange<Date>>, mode: OpeningHoursMode = OpeningHoursMode.NextSevenDays)

Types

Link copied to clipboard
object Companion

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.

Properties

Link copied to clipboard
Link copied to clipboard