AI-generated Key Takeaways
-
GMSPlaceIsOpenRequestobjects define parameters for checking if a place is currently open. -
Requests can be initialized using either a
GMSPlaceobject 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, anddateproperties of the request are read-only and reflect the initialization values. -
The default
initmethod is unavailable; you must use the designated initializers (initWithPlace:date:orinitWithPlaceID:date:).
GMSPlaceIsOpenRequest
@interface GMSPlaceIsOpenRequest : NSObjectRepresents an is open request definition to be sent via GMSPlacesClient.
-
Initializes the request with a
GMSPlaceand date.Declaration
Swift
init(place: GMSPlace, date: Date?)Objective-C
- (nonnull instancetype)initWithPlace:(nonnull GMSPlace *)place date:(nullable NSDate *)date;Parameters
placeThe
GMSPlaceto 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.
-
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
placeIDThe placeID 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.
-
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;