GooglePlacesSwift Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
IsPlaceOpenRequest
struct IsPlaceOpenRequest
extension IsPlaceOpenRequest : Sendable
Represents an IsPlaceOpenRequest
definition to be sent via PlacesClient.
-
The Date
to 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 Place
and an optional Date
.
Declaration
Swift
init(place: Place, date: Date? = nil)
Parameters
place
|
The Place to be used for the request.
|
date
|
The date to to be used for the request. If no date is provided, the current date
and time is used.
|
-
Initializes the request with a placeID
and an optional Date
.
Declaration
Swift
init(placeID: String, date: Date? = nil)
Parameters
placeID
|
The place ID to be used for the request.
|
date
|
The date to be used for the request. If no date is provided, the current date and
time is used.
|
-
The Place
to be used for the request.
Declaration
Swift
var place: Place? { get }
-
The place ID to be used for the request.
Declaration
Swift
var placeID: String? { get }
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eIsPlaceOpenRequest\u003c/code\u003e determines if a place is currently open using either a \u003ccode\u003ePlace\u003c/code\u003e object or a \u003ccode\u003eplaceID\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eRequests can specify a specific \u003ccode\u003eDate\u003c/code\u003e for the query; otherwise, the current date and time are used.\u003c/p\u003e\n"],["\u003cp\u003eThe request can be initialized with either a \u003ccode\u003ePlace\u003c/code\u003e object or a \u003ccode\u003eplaceID\u003c/code\u003e string, along with an optional \u003ccode\u003eDate\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe struct provides access to the \u003ccode\u003eplace\u003c/code\u003e, \u003ccode\u003eplaceID\u003c/code\u003e, and \u003ccode\u003edate\u003c/code\u003e associated with the request.\u003c/p\u003e\n"]]],["`IsPlaceOpenRequest` facilitates checking if a place is open. It can be initialized using either a `Place` object or a `placeID` string, both with an optional `Date`. If no `Date` is supplied, the current date/time is used. The request then utilizes the `place` or `placeID` to query the place's open status for the specified date. It contains variables for place and placeID.\n"],null,["# GooglePlacesSwift Framework Reference\n\nIsPlaceOpenRequest\n==================\n\n struct IsPlaceOpenRequest\n\n extension IsPlaceOpenRequest : Sendable\n\nRepresents an `IsPlaceOpenRequest` definition to be sent via PlacesClient.\n- `\n ``\n ``\n `\n\n ### [date](#/s:17GooglePlacesSwift18IsPlaceOpenRequestV4date10Foundation4DateVSgvp)\n\n `\n ` \n The `Date` to be used for the request. If no date is provided, the current date and time is\n used. \n\n #### Declaration\n\n Swift \n\n var date: Date? { get }\n\n- `\n ``\n ``\n `\n\n ### [init(place:date:)](#/s:17GooglePlacesSwift18IsPlaceOpenRequestV5place4dateAcA0E0V_10Foundation4DateVSgtcfc)\n\n `\n ` \n Initializes the request with a [Place](../Structs/Place.html) and an optional `Date`. \n\n #### Declaration\n\n Swift \n\n init(place: ../Structs/Place.html, date: Date? = nil)\n\n #### Parameters\n\n |---------------|----------------------------------------------------------------------------------------------------|\n | ` `*place*` ` | The [Place](../Structs/Place.html) to be used for the request. |\n | ` `*date*` ` | The date to to be used for the request. If no date is provided, the current date and time is used. |\n\n- `\n ``\n ``\n `\n\n ### [init(placeID:date:)](#/s:17GooglePlacesSwift18IsPlaceOpenRequestV7placeID4dateACSS_10Foundation4DateVSgtcfc)\n\n `\n ` \n Initializes the request with a [placeID](../Structs/IsPlaceOpenRequest.html#/s:17GooglePlacesSwift18IsPlaceOpenRequestV7placeIDSSSgvp) and an optional `Date`. \n\n #### Declaration\n\n Swift \n\n init(placeID: String, date: Date? = nil)\n\n #### Parameters\n\n |-----------------|-------------------------------------------------------------------------------------------------|\n | ` `*placeID*` ` | The place ID to be used for the request. |\n | ` `*date*` ` | The date to be used for the request. If no date is provided, the current date and time is used. |\n\n- `\n ``\n ``\n `\n\n ### [place](#/s:17GooglePlacesSwift18IsPlaceOpenRequestV5placeAA0E0VSgvp)\n\n `\n ` \n The [Place](../Structs/Place.html) to be used for the request. \n\n #### Declaration\n\n Swift \n\n var place: ../Structs/Place.html? { get }\n\n- `\n ``\n ``\n `\n\n ### [placeID](#/s:17GooglePlacesSwift18IsPlaceOpenRequestV7placeIDSSSgvp)\n\n `\n ` \n The place ID to be used for the request. \n\n #### Declaration\n\n Swift \n\n var placeID: String? { get }"]]