GooglePlacesSwift Framework Reference

  • This documentation details globally available enumerations in the Places SDK for iOS.

  • These enumerations provide structured data types for various place-related attributes, such as business status, opening hours, and price level.

  • Developers can use these enumerations to request and handle specific information about places when using the SDK.

  • Each enumeration is described with its purpose and relevant links for further details.

  • PlaceProperty is particularly important as it defines the data fields that can be retrieved for a place object.

Enumerations

The following enumerations are available globally.

  • The content density of the suggestion list.

    Declaration

    Swift

    enum AutocompleteListDensity
    extension AutocompleteListDensity : Copyable, Equatable, Escapable, Hashable
  • AutocompleteSuggestion enum with an associated value that contains the actual suggestion.

    Declaration

    Swift

    enum AutocompleteSuggestion
    extension AutocompleteSuggestion : Equatable, Hashable, Sendable, SendableMetatype
  • The icon to display in placeAutocomplete or basicPlaceAutocomplete.

    Declaration

    Swift

    enum AutocompleteUIIcon
    extension AutocompleteUIIcon : Copyable, Equatable, Escapable, Hashable
  • Describes the business status of a place.

    Declaration

    Swift

    enum BusinessStatus
    extension BusinessStatus : CaseIterable, Equatable, Hashable, Identifiable
  • This product or feature is in pre-GA. Pre-GA products and features might have limited support, and changes to pre-GA products and features might not be compatible with other pre-GA versions. Pre-GA Offerings are covered by the Google Maps Platform Service Specific Terms (https://cloud.google.com/maps-platform/terms/maps-service-terms).

    Represents an element that can be displayed as a corner action on a place view.

    This can be either a predefined action identified by its ID, or a custom CornerPlaceAction.

    Declaration

    Swift

    enum CornerPlaceActionElement
  • The fields represent individual days of the week.

    Matches NSDateComponents.weekday index. Refer to https://developer.apple.com/documentation/foundation/nsdatecomponents/1410442-weekday

    Declaration

    Swift

    enum DayOfWeek
    extension DayOfWeek : Copyable, Equatable, Escapable, Hashable, RawRepresentable
  • Describes the EV charging connector type.

    Declaration

    Swift

    enum EVConnectorType
    extension EVConnectorType : CaseIterable, Copyable, Equatable, Escapable, Hashable, RawRepresentable, Sendable, SendableMetatype
  • Describes the fuel option type. LINT.IfChange(FuelType)

    Declaration

    Swift

    enum FuelType
    extension FuelType : CaseIterable, Copyable, Equatable, Escapable, Hashable, RawRepresentable, Sendable, SendableMetatype
  • Identifies the type of secondary opening hours.

    HoursType is only set for secondary opening hours (i.e. opening hours returned from Place secondaryOpeningHours). Hours types described here: https://developers.google.com/maps/documentation/places/web-service/details#PlaceOpeningHours-type

    Declaration

    Swift

    enum HoursType
    extension HoursType : Copyable, Equatable, Escapable, Hashable, RawRepresentable
  • This product or feature is in pre-GA. Pre-GA products and features might have limited support, and changes to pre-GA products and features might not be compatible with other pre-GA versions. Pre-GA Offerings are covered by the Google Maps Platform Service Specific Terms (https://cloud.google.com/maps-platform/terms/maps-service-terms).

    Represents an element that can be displayed as an inline action on a place view.

    This can be either a predefined action identified by its ID, or a custom InlinePlaceAction.

    Declaration

    Swift

    enum InlinePlaceActionElement
  • Describes the current open status of a place.

    Declaration

    Swift

    enum OpenNowStatus
    extension OpenNowStatus : Copyable, Equatable, Escapable, Hashable, RawRepresentable
  • This product or feature is in pre-GA. Pre-GA products and features might have limited support, and changes to pre-GA products and features might not be compatible with other pre-GA versions. Pre-GA Offerings are covered by the Google Maps Platform Service Specific Terms (https://cloud.google.com/maps-platform/terms/maps-service-terms).

    Identifies predefined types of actions that can be associated with a place.

    Declaration

    Swift

    enum PlaceActionID
  • This product or feature is in pre-GA. Pre-GA products and features might have limited support, and changes to pre-GA products and features might not be compatible with other pre-GA versions. Pre-GA Offerings are covered by the Google Maps Platform Service Specific Terms (https://cloud.google.com/maps-platform/terms/maps-service-terms).

    Represents the style of a place action.

    By default, place actions are displayed with secondary style.

    Declaration

    Swift

    enum PlaceActionStyle
    extension PlaceActionStyle : Copyable, Equatable, Escapable, Hashable
  • The content type of the place details compact view.

    Declaration

    Swift

    enum PlaceDetailsCompactContent
    extension PlaceDetailsCompactContent : Equatable, Hashable, Sendable, SendableMetatype
  • The content that can be displayed in the place details full view.

    Declaration

    Swift

    enum PlaceDetailsContent
    extension PlaceDetailsContent : Equatable, Hashable, Sendable, SendableMetatype
  • Declaration

    Swift

    enum PlaceDetailsViewOrientation
    extension PlaceDetailsViewOrientation : Copyable, Equatable, Escapable, Hashable
  • The place identifier.

    Declaration

    Swift

    enum PlaceIdentifier
  • The properties represent individual information that can be requested for a Place object.

    If no request properties are set, the Place object will be empty with no useful information.

    Please refer to https://developers.google.com/places/ios-sdk/place-data-fields for more details.

    Declaration

    Swift

    enum PlaceProperty
    extension PlaceProperty : Copyable, Equatable, Escapable, Hashable
  • The types of content that should be displayed in the place search view.

    Declaration

    Swift

    enum PlaceSearchContent
    extension PlaceSearchContent : Equatable, Hashable, Sendable, SendableMetatype
  • The type of request that should be used to fetch the place search results.

    Declaration

    Swift

    enum PlaceSearchViewRequest
    extension PlaceSearchViewRequest : Equatable
  • The attribution position in the place view.

    Declaration

    Swift

    enum PlaceViewAttributionPosition
    extension PlaceViewAttributionPosition : Copyable, Equatable, Escapable, Hashable, Sendable, SendableMetatype
  • The size of the media in the place view.

    Declaration

    Swift

    enum PlaceViewMediaSize
    extension PlaceViewMediaSize : Copyable, Equatable, Escapable, Hashable, Sendable, SendableMetatype
  • The orientation of the place view.

    Declaration

    Swift

    enum PlaceViewOrientation
    extension PlaceViewOrientation : Copyable, Equatable, Escapable, Hashable, Sendable, SendableMetatype
  • The attribution color.

    Declaration

    Swift

    enum PlacesAttributionColor
    extension PlacesAttributionColor : Equatable, Hashable, Sendable, SendableMetatype
  • Places error types.

    Declaration

    Swift

    enum PlacesError
    extension PlacesError : Equatable, Error, Hashable, Sendable, SendableMetatype
  • The price level of a place.

    Declaration

    Swift

    enum PriceLevel
    extension PriceLevel : CaseIterable, Equatable, Hashable, Identifiable
  • A set of values that specify factors to take into consideration when calculating the routes.

    Declaration

    Swift

    enum RoutingPreference
    extension RoutingPreference : CaseIterable, Copyable, Equatable, Escapable, Hashable, RawRepresentable, Sendable, SendableMetatype
  • Travel mode for routing.

    Declaration

    Swift

    enum TravelMode
    extension TravelMode : CaseIterable, Copyable, Equatable, Escapable, Hashable, RawRepresentable, Sendable, SendableMetatype