GooglePlacesSwift Framework Reference

  • The PlacesClient class is the primary interface for interacting with the Places SDK, enabling functionalities like searching for places and retrieving place details.

  • Access the PlacesClient through the shared instance PlacesClient.shared.

  • Ensure all PlacesClient methods are exclusively called from the main thread to avoid exceptions or unexpected behavior.

Classes

The following classes are available globally.

  • The place details UI widget result.

    Declaration

    Swift

    final class PlaceDetailsResult
    extension PlaceDetailsResult : ObservableObject
  • Main 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 from another thread will result in an exception or undefined behavior.

    Declaration

    Swift

    final class PlacesClient
    extension PlacesClient : PlacesClientProtocol, Sendable