GMSFetchPlaceRequest
@interface GMSFetchPlaceRequest : NSObjectRequest object to use with GMSPlacesClient to fetch a place.
-
Request object to use with
GMSPlacesClientto fetch a place.Declaration
Swift
init(placeID: String, placeProperties: [String], sessionToken: GMSAutocompleteSessionToken?)Objective-C
- (nonnull instancetype) initWithPlaceID:(nonnull NSString *)placeID placeProperties:(nonnull NSArray<NSString *> *)placeProperties sessionToken:(nullable GMSAutocompleteSessionToken *)sessionToken;Parameters
placeIDThe ID of the place to be requested.
placePropertiesThe properties of the place to be requested. Must not be empty. An empty list will result in an error when trying to send the request. Read more about Place Data Fields.
sessionTokenThe
GMSAutocompleteSessionTokento associate request to a billing session. -
Unavailable
Default init is not available. Please use the designated initializer.
Declaration
Objective-C
- (nonnull instancetype)init; -
Place ID of the place being requested.
Declaration
Swift
var placeID: String { get }Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull placeID; -
Place properties to include in the
GMSPlaceresponse. Must not be empty. An empty list will result in an error when trying to send the request.Declaration
Swift
var placeProperties: [String] { get }Objective-C
@property (nonatomic, copy, readonly) NSArray<NSString *> *_Nonnull placeProperties; -
Session token to associate request to a billing session.
Declaration
Swift
@NSCopying var sessionToken: GMSAutocompleteSessionToken? { get }Objective-C
@property (nonatomic, copy, readonly, nullable) GMSAutocompleteSessionToken *sessionToken;