> Documentation index: https://developers.google.com/maps/documentation/llms.txt

# Type-Definitions

The following type definitions are available globally.
- `


  ### [GMSPlaceProperty](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Type-Definitions/GMSPlaceProperty.md.txt)


  ` The properties represent individual information that can be requested for `GMSPlace` objects.
  If no request properties are set, the `GMSPlace` object will be empty with no useful information.
  Refer to <https://developers.google.com/places/ios-sdk/place-data-fields> for more details.

  #### Declaration

  Swift

      struct GMSPlaceProperty : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable

  Objective-C

      typedef NSString *const GMSPlaceProperty

- `


  ### [GMSAppCheckTokenCompletion](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Type-Definitions/GMSAppCheckTokenCompletion.md.txt)


  ` Completion type for receiving App Check tokens. If an error occurred, `token` will be nil and
  `error` will contain information about the error.

  #### Declaration

  Swift

      typealias GMSAppCheckTokenCompletion = (String?, (any Error)?) -> Void

  Objective-C

      typedef void (^GMSAppCheckTokenCompletion)(NSString *_Nullable,
                                                 NSError *_Nullable)

  #### Parameters

  |---|---|
  | ` token ` | The `NSString` that was returned. |
  | ` error ` | The error that occurred, if any. |

- `


  ### [GMSPlaceResultCallback](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Type-Definitions/GMSPlaceResultCallback.md.txt)


  ` Callback type for receiving place details lookups. If an error occurred,
  `result` will be nil and `error` will contain information about the error.
  See

  `GMSPlacesClient`

  #### Declaration

  Swift

      typealias GMSPlaceResultCallback = (GMSPlace?, (any Error)?) -> Void

  Objective-C

      typedef void (^GMSPlaceResultCallback)(GMSPlace *_Nullable, NSError *_Nullable)

  #### Parameters

  |---|---|
  | ` result ` | The `GMSPlace` that was returned. |
  | ` error ` | The error that occurred, if any. |

- `


  ### [GMSAutocompletePredictionsCallback](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Type-Definitions/GMSAutocompletePredictionsCallback.md.txt)


  ` Callback type for autocomplete prediction lookups.

  #### Declaration

  Swift

      typealias GMSAutocompletePredictionsCallback = ([GMSAutocompletePrediction]?, (any Error)?) -> Void

  Objective-C

      typedef void (^GMSAutocompletePredictionsCallback)(
          NSArray<GMSAutocompletePrediction *> *_Nullable, NSError *_Nullable)

  #### Parameters

  |---|---|
  | ` results ` | An array of `GMSAutocompletePrediction`. |
  | ` error ` | The error that occurred, if any. |

- `


  ### [GMSPlaceOpenStatusResponseCallback](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Type-Definitions/GMSPlaceOpenStatusResponseCallback.md.txt)


  ` Callback type for receiving the open status response. If an error occurred, response will be
  have a status of `GMSPlaceOpenStatusUnknown` and error will contain information about the error.
  See

  `GMSPlacesClient`

  #### Declaration

  Swift

      typealias GMSPlaceOpenStatusResponseCallback = (GMSPlaceIsOpenResponse, (any Error)?) -> Void

  Objective-C

      typedef void (^GMSPlaceOpenStatusResponseCallback)(
          GMSPlaceIsOpenResponse *_Nonnull, NSError *_Nullable)

  #### Parameters

  |---|---|
  | ` response ` | The `GMSPlaceIsOpenResponse` that was returned. |
  | ` error ` | The error that occurred, if any. |

- `


  ### [GMSPlaceSearchByTextResultCallback](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Type-Definitions/GMSPlaceSearchByTextResultCallback.md.txt)


  ` Deprecated

  This method is replaced by `GMSPlaceSearchByTextResponseCallback` and will be removed in a future release.
  Callback type for receiving search by text results. `results` is an array of
  `GMSPlace` representing individual results matching the query.
  See

  `GMSPlacesClient`

  #### Declaration

  Swift

      typealias GMSPlaceSearchByTextResultCallback = ([GMSPlace]?, (any Error)?) -> Void

  Objective-C

      typedef void (^GMSPlaceSearchByTextResultCallback)(
          NSArray<GMSPlace *> *_Nullable, NSError *_Nullable)

  #### Parameters

  |---|---|
  | ` results ` | An array of `GMSPlace`s. |
  | ` error ` | The error that occurred, if any. |

- `


  ### [GMSFetchPhotoResultCallback](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Type-Definitions/GMSFetchPhotoResultCallback.md.txt)


  ` Callback type for receiving a photo. `photoImage` is a `UIImage`
  representing the resulting photo matching the specified request.
  If an error occurred, `photoImage` will be nil and `error` will contain
  information about the error.
  See

  `GMSPlacesClient`

  #### Declaration

  Swift

      typealias GMSFetchPhotoResultCallback = (UIImage?, (any Error)?) -> Void

  Objective-C

      typedef void (^GMSFetchPhotoResultCallback)(UIImage *_Nullable,
                                                  NSError *_Nullable)

  #### Parameters

  |---|---|
  | ` photoImage ` | A `UIImage` result. |

- `


  ### [GMSAutocompleteSuggestionsCallback](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Type-Definitions/GMSAutocompleteSuggestionsCallback.md.txt)


  ` Callback type for autocomplete results.
  See

  `GMSPlacesClient`

  #### Declaration

  Swift

      typealias GMSAutocompleteSuggestionsCallback = ([GMSAutocompleteSuggestion]?, (any Error)?) -> Void

  Objective-C

      typedef void (^GMSAutocompleteSuggestionsCallback)(
          NSArray<GMSAutocompleteSuggestion *> *_Nullable, NSError *_Nullable)

  #### Parameters

  |---|---|
  | ` results ` | An array of `GMSAutocompleteSuggestion`. |
  | ` error ` | The error that occurred, if any. |

- `


  ### [GMSPlaceSearchNearbyResultCallback](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Type-Definitions/GMSPlaceSearchNearbyResultCallback.md.txt)


  ` Deprecated

  This method is replaced by `GMSPlaceSearchNearbyResponseCallback` and will be removed in a future release.
  Callback type for receiving search nearby results.
  See

  `GMSPlacesClient`

  #### Declaration

  Swift

      typealias GMSPlaceSearchNearbyResultCallback = ([GMSPlace]?, (any Error)?) -> Void

  Objective-C

      typedef void (^GMSPlaceSearchNearbyResultCallback)(
          NSArray<GMSPlace *> *_Nullable, NSError *_Nullable)

  #### Parameters

  |---|---|
  | ` places ` | An array of `GMSPlace` |
  | ` error ` | The error that occurred, if any. |

- `


  ### [GMSPlaceSearchByTextResponseCallback](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Type-Definitions/GMSPlaceSearchByTextResponseCallback.md.txt)


  ` Callback type for receiving the search by text response. `response` is
  `GMSPlaceSearchByTextResponse` representing a list of places and other attributes about the
  places.
  See

  `GMSPlacesClient`

  #### Declaration

  Swift

      typealias GMSPlaceSearchByTextResponseCallback = (GMSPlaceSearchByTextResponse?, (any Error)?) -> Void

  Objective-C

      typedef void (^GMSPlaceSearchByTextResponseCallback)(
          GMSPlaceSearchByTextResponse *_Nullable, NSError *_Nullable)

  #### Parameters

  |---|---|
  | ` response ` | Search response containing a list of places and potential other attributes about the places. |
  | ` error ` | The error that occurred, if any. |

- `


  ### [GMSPlaceSearchNearbyResponseCallback](https://developers.google.com/maps/documentation/places/ios-sdk/reference/objc/Type-Definitions/GMSPlaceSearchNearbyResponseCallback.md.txt)


  ` Callback type for receiving search nearby response. `response` is `GMSPlaceSearchNearbyResponse`
  representing a list of places and other attributes about the places.
  See

  `GMSPlacesClient`

  #### Declaration

  Swift

      typealias GMSPlaceSearchNearbyResponseCallback = (GMSPlaceSearchNearbyResponse?, (any Error)?) -> Void

  Objective-C

      typedef void (^GMSPlaceSearchNearbyResponseCallback)(
          GMSPlaceSearchNearbyResponse *_Nullable, NSError *_Nullable)

  #### Parameters

  |---|---|
  | ` response ` | Search response containing a list of places and potential other attributes about the places. |
  | ` error ` | The error that occurred, if any. |