GooglePlacesSwift Framework Reference

  • This documentation details globally available protocols within the Places SDK for iOS.

  • These protocols provide functionality for tasks such as fetching App Check tokens, defining coordinate regions, and interacting with the Places SDK.

  • Some protocols, likeCoordinateRegionBias andCoordinateRegionRestriction, should not be conformed to by external types to avoid errors.

  • ThePlacesClientProtocol is the primary interface for using the Places SDK, offering methods for searching and retrieving place details.

  • All interactions with the Places SDK, including calls toPlacesClient methods, should occur on the main thread for stability and predictable behavior.

Protocols

The following protocols are available globally.

  • Protocol for the AI-generated summary of the place.

    Declaration

    Swift

    protocolAISummary:CustomStringConvertible,Hashable,Sendable
  • A protocol for fetching the App Check token.

    Declaration

    Swift

    protocolAppCheckTokenProvider:Sendable
  • Declaration

    Swift

    protocolConsumerAlertProtocol:CustomStringConvertible,Hashable,Sendable
  • Specifies coordinate region information.

    Declaration

    Swift

    protocolCoordinateRegion:Hashable
  • Specifies that the coordinate region can be used as a search bias.

    Warning

    This should not be conformed to by types outside of GooglePlacesSwift. Doing so mayresult in a fatal error.

    Declaration

    Swift

    protocolCoordinateRegionBias:CoordinateRegion
  • Specifies that the coordinate region can be used as a search restriction.

    Warning

    This should not be conformed to by types outside of GooglePlacesSwift. Doing so mayresult in a fatal error.

    Declaration

    Swift

    protocolCoordinateRegionRestriction:CoordinateRegion
  • Declaration

    Swift

    protocolPlaceProtocol:CustomStringConvertible,Hashable,Sendable
  • Main interface to the Places SDK, used for searching and getting details about places.

    This type should be accessed throughPlacesClient.shared.

    PlacesClient methods should only be called from the main thread. Calling these methods fromanother thread will result in an exception or undefined behavior. Unless otherwise specified,all callbacks will be invoked on the main thread.

    Declaration

    Swift

    protocolPlacesClientProtocol:AnyObject,Sendable
  • Protocol for the response to a place search request.

    Declaration

    Swift

    protocolSearchResponse:Sendable

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-11-20 UTC.