GooglePlaces Framework Reference

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 GMSPlace to be used for the request.

    Declaration

    Swift

    var place: GMSPlace? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) GMSPlace *place;
  • 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;