AI-generated Key Takeaways
-
GMSPlaceIsOpenRequest
objects define parameters for checking if a place is currently open. -
Requests can be initialized using either a
GMSPlace
object or a placeID string, along with an optional date. -
If no date is specified in the request, the current date and time are used to determine the place's open status.
-
The
place
,placeID
, anddate
properties of the request are read-only and reflect the initialization values. -
The default
init
method is unavailable; you must use the designated initializers (initWithPlace:date:
orinitWithPlaceID:date:
).
GMSPlaceIsOpenRequest
@interface GMSPlaceIsOpenRequest : NSObject
Represents an is open request definition to be sent via GMSPlacesClient
.
-
Initializes the request with a
GMSPlace
and date.Declaration
Swift
init(place: GMSPlace, date: Date?)
Objective-C
- (nonnull instancetype)initWithPlace:(nonnull GMSPlace *)place date:(nullable NSDate *)date;
Parameters
place
The
GMSPlace
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.
-
Initializes the request with a placeID and date.
Declaration
Swift
convenience init(placeID: String, date: Date?)
Objective-C
- (nonnull instancetype)initWithPlaceID:(nonnull NSString *)placeID date:(nullable NSDate *)date;
Parameters
placeID
The placeID 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.
-
Unavailable
Default init is not available. Please use the designated initializer.
Declaration
Objective-C
- (nonnull instancetype)init;
-
The placeID to be used for the request.
Declaration
Swift
var placeID: String? { get }
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *placeID;
-
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 }
Objective-C
@property (nonatomic, readonly, nullable) NSDate *date;