GooglePlacesSwift Framework Reference Stay organized with collections Save and categorize content based on your preferences.
AI-generated Key Takeaways
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, like
CoordinateRegionBiasandCoordinateRegionRestriction, should not be conformed to by external types to avoid errors.The
PlacesClientProtocolis the primary interface for using the Places SDK, offering methods for searching and retrieving place details.All interactions with the Places SDK, including calls to
PlacesClientmethods, 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,SendableA protocol for fetching the App Check token.
Declaration
Swift
protocolAppCheckTokenProvider:SendableDeclaration
Swift
protocolConsumerAlertProtocol:CustomStringConvertible,Hashable,SendableSpecifies coordinate region information.
Declaration
Swift
protocolCoordinateRegion:HashableSpecifies 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:CoordinateRegionSpecifies 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:CoordinateRegionDeclaration
Swift
protocolPlaceProtocol:CustomStringConvertible,Hashable,SendableMain interface to the Places SDK, used for searching and getting details about places.
This type should be accessed through
PlacesClient.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,SendableProtocol 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.