GooglePlacesSwift Framework Reference

Structures

The following structures are available globally.

  • Information about the accessibility options a place offers.

    Declaration

    Swift

    struct AccessibilityOptions
  • Represents a component of an address, e.g., street number, postcode, city, etc.

    Declaration

    Swift

    struct AddressComponent
    extension AddressComponent : Copyable, CustomStringConvertible, Equatable, Escapable, Hashable, Sendable
  • Declaration

    Swift

    struct AuthorAttribution
    extension AuthorAttribution : Copyable, CustomStringConvertible, Equatable, Escapable, Hashable, Sendable
  • Represents a set of restrictions that may be applied to autocomplete requests. This allows customization of autocomplete suggestions to only those places that are of interest.

    Declaration

    Swift

    struct AutocompleteFilter
    extension AutocompleteFilter : Sendable
  • This class represents a suggestion of a full query based on a partially typed string. */

    Declaration

    Swift

    struct AutocompletePlaceSuggestion
    extension AutocompletePlaceSuggestion : Copyable, CustomStringConvertible, Equatable, Escapable, Hashable, Sendable
  • The request for autocomplete suggestions based on a given partial query along with additional configuring properties.

    Declaration

    Swift

    struct AutocompleteRequest
    extension AutocompleteRequest : Sendable
  • This class represents an session token to uniquely identify an series of queries to the Google Places API Services for fetching place predictions for a partial search string.

    Declaration

    Swift

    struct AutocompleteSessionToken
    extension AutocompleteSessionToken : Copyable, Equatable, Escapable, Hashable, Sendable
  • UI customizations for the Autocomplete place picker.

    Declaration

    Swift

    struct AutocompleteUICustomization
  • CircularCoordinateRegion represents a circular bounding region on the Earth’s surface. CircularCoordinateRegion is immutable and can’t be modified after construction.

    Declaration

    Swift

    struct CircularCoordinateRegion
    extension CircularCoordinateRegion : CoordinateRegion, CoordinateRegionBias, CoordinateRegionRestriction, Copyable, Equatable, Escapable, Hashable, Sendable
  • A class representing a open/close event in Period.

    Declaration

    Swift

    struct Event
    extension Event : Copyable, CustomStringConvertible, Equatable, Escapable, Hashable, Sendable
  • The request for a specific placeID and place properties to include in the Place response.

    Declaration

    Swift

    struct FetchPhotoRequest
    extension FetchPhotoRequest : Sendable
  • The request for a specific placeID and place properties to include in the Place response.

    Declaration

    Swift

    struct FetchPlaceRequest
    extension FetchPlaceRequest : Sendable
  • Represents an IsPlaceOpenRequest definition to be sent via PlacesClient.

    Declaration

    Swift

    struct IsPlaceOpenRequest
    extension IsPlaceOpenRequest : Sendable
  • The response from the isPlaceOpen method.

    Declaration

    Swift

    struct IsPlaceOpenResponse
    extension IsPlaceOpenResponse : Sendable
  • A type to handle storing and accessing opening hours information for Place.

    Declaration

    Swift

    struct OpeningHours
    extension OpeningHours : Copyable, CustomStringConvertible, Equatable, Escapable, Hashable, Sendable
  • A type representing a period of time where the place is operating for a Place.

    Contains an open Event and an optional close Event. The close event will be nil if the period is open 24hrs.

    Declaration

    Swift

    struct Period
    extension Period : Copyable, CustomStringConvertible, Equatable, Escapable, Hashable, Sendable
  • The metadata corresponding to a single photo associated with a place.

    Declaration

    Swift

    struct Photo
    extension Photo : Copyable, CustomStringConvertible, Equatable, Escapable, Hashable, Sendable
  • Represents a particular physical place.

    A Place encapsulates information about a physical location, including its name, location, and any other information we might have about it. This class is immutable.

    Declaration

    Swift

    struct Place
    extension Place : Copyable, CustomStringConvertible, Equatable, Escapable, Hashable, PlaceProtocol, Sendable
  • The configuration of the place details compact view.

    Declaration

    Swift

    struct PlaceDetailsCompactConfiguration
    extension PlaceDetailsCompactConfiguration : Sendable
  • Declaration

    Swift

    struct PlaceDetailsCompactView
    extension PlaceDetailsCompactView : Sendable, View
  • The place detail widget query.

    Declaration

    Swift

    struct PlaceDetailsQuery
    extension PlaceDetailsQuery : Equatable
  • Declaration

    Swift

    struct PlaceType
    extension PlaceType : Equatable, Hashable, RawRepresentable, Sendable
  • The material attribution of the place View.

    Declaration

    Swift

    struct PlacesMaterialAttribution
    extension PlacesMaterialAttribution : Equatable, Hashable, Sendable
  • The material color of the place View.

    Declaration

    Swift

    struct PlacesMaterialColor
    extension PlacesMaterialColor : Equatable, Hashable, Sendable
  • The material font of the place View.

    Declaration

    Swift

    struct PlacesMaterialFont
    extension PlacesMaterialFont : Equatable, Hashable, Sendable
  • The material shape of the place View.

    Declaration

    Swift

    struct PlacesMaterialShape
    extension PlacesMaterialShape : Equatable, Hashable, Sendable
  • The theme for the place widget.

    Declaration

    Swift

    struct PlacesMaterialTheme
    extension PlacesMaterialTheme : Equatable, Hashable, Sendable
  • A class containing the Plus codes representation for a location.

    See https://plus.codes/ for more details.

    Declaration

    Swift

    struct PlusCode
    extension PlusCode : Copyable, CustomStringConvertible, Equatable, Escapable, Hashable, Sendable
  • RectangularCoordinateRegion represents a rectangular bounding box on the Earth’s surface. RectangularCoordinateRegion is immutable and can’t be modified after construction.

    Declaration

    Swift

    struct RectangularCoordinateRegion
    extension RectangularCoordinateRegion : CoordinateRegion, CoordinateRegionBias, CoordinateRegionRestriction, Copyable, Equatable, Escapable, Hashable, Sendable
  • Declaration

    Swift

    struct Review
    extension Review : Copyable, CustomStringConvertible, Equatable, Escapable, Hashable, Sendable
  • Declaration

    Swift

    struct SearchByTextRequest
    extension SearchByTextRequest : Sendable
  • Declaration

    Swift

    struct SearchNearbyRequest
    extension SearchNearbyRequest : Sendable
  • Represents information on a particular day which may have opening hours different than normal.

    Declaration

    Swift

    struct SpecialDay
    extension SpecialDay : Copyable, CustomStringConvertible, Equatable, Escapable, Hashable, Sendable
  • Time represents time in hours and minutes in a 24hr clock.

    Declaration

    Swift

    struct Time
    extension Time : Copyable, CustomStringConvertible, Equatable, Escapable, Hashable, Sendable