AI-generated Key Takeaways
-
IsPlaceOpenRequestdetermines if a place is currently open using either aPlaceobject or aplaceID. -
Requests can specify a specific
Datefor the query; otherwise, the current date and time are used. -
The request can be initialized with either a
Placeobject or aplaceIDstring, along with an optionalDate. -
The struct provides access to the
place,placeID, anddateassociated with the request.
IsPlaceOpenRequest
struct IsPlaceOpenRequestextension IsPlaceOpenRequest : SendableRepresents an IsPlaceOpenRequest definition to be sent via PlacesClient.
-
The
Dateto be used for the request. If no date is provided, the current date and time is used.Declaration
Swift
var date: Date? { get } -
Initializes the request with a
placeIDand an optionalDate.Declaration
Swift
init(placeID: String, date: Date? = nil)Parameters
placeIDThe place ID to be used for the request.
dateThe date to be used for the request. If no date is provided, the current date and time is used.
-
The place ID to be used for the request.
Declaration
Swift
var placeID: String? { get }