OpeningHours Structure Reference
- Last UpdatedMay 13, 2025
- 1 minute read
public struct OpeningHours : Hashable
Represents opening hours information.
-
The list of opening hours presented as localized text.
Declaration
Swift
public var text: [String]
-
Boolean flag informing if the place is open or closed at the time when the search request was initiated. For offline search, this is calculated using device’s time, so it may give incorrect value if device and place are located in different time zones.
Declaration
Swift
public var isOpen: Bool
-
The list of schedule details.
Declaration
Swift
public var scheduleDetailsList: [ScheduleDetails]
-
The list of categories related to opening hours information. This data is not available in offline search.
Declaration
Swift
public var categories: [PlaceCategory]
-
Creates a new instance.
Declaration
Swift
public init(text: [String], isOpen: Bool, scheduleDetailsList: [ScheduleDetails], categories: [PlaceCategory])