AI-generated Key Takeaways
- 
          GMSFetchPlaceRequestobjects are used withGMSPlacesClientto fetch details about a specific place using its ID.
- 
          Requests must specify the placeIDand desiredplacePropertiesto retrieve data fields for the place.
- 
          An optional sessionTokencan be included to associate the request with a billing session, particularly useful for autocomplete queries.
- 
          The default initmethod is unavailable; useinitWithPlaceID:placeProperties:sessionToken:to create a request instance.
- 
          The requested placePropertiesarray cannot be empty; otherwise, an error will occur when sending the request.
GMSFetchPlaceRequest
@interface GMSFetchPlaceRequest : NSObjectRequest object to use with GMSPlacesClient to fetch a place.
- 
                  
                  Request object to use with GMSPlacesClientto fetch a place.DeclarationSwift init(placeID: String, placeProperties: [String], sessionToken: GMSAutocompleteSessionToken?)Objective-C - (nonnull instancetype) initWithPlaceID:(nonnull NSString *)placeID placeProperties:(nonnull NSArray<NSString *> *)placeProperties sessionToken:(nullable GMSAutocompleteSessionToken *)sessionToken;ParametersplaceIDThe 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. DeclarationObjective-C - (nonnull instancetype)init;
- 
                  
                  Place ID of the place being requested. DeclarationSwift 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.DeclarationSwift var placeProperties: [String] { get }Objective-C @property (nonatomic, copy, readonly) NSArray<NSString *> *_Nonnull placeProperties;
- 
                  
                  Session token to associate request to a billing session. DeclarationSwift @NSCopying var sessionToken: GMSAutocompleteSessionToken? { get }Objective-C @property (nonatomic, copy, readonly, nullable) GMSAutocompleteSessionToken *sessionToken;