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 that should be displayed in the AdvancedPlaceDetailsCompactView component.

    Declaration

    Swift

    enum AdvancedPlaceDetailsCompactContent
    extension AdvancedPlaceDetailsCompactContent : Equatable, Hashable, Sendable, SendableMetatype
  • The content that should be displayed in the AdvancedPlaceDetailsView component.

    Declaration

    Swift

    enum AdvancedPlaceDetailsContent
    extension AdvancedPlaceDetailsContent : Equatable, Hashable, Sendable, SendableMetatype
  • The types of content that can be displayed in the AdvancedPlaceListView component.

    Declaration

    Swift

    enum AdvancedPlaceListContent
    extension AdvancedPlaceListContent : Equatable, Hashable, Sendable, SendableMetatype
  • The types of content that can be displayed in the AdvancedPlaceSearchView component.

    Declaration

    Swift

    enum AdvancedPlaceSearchContent
    extension AdvancedPlaceSearchContent : Equatable, Hashable, Sendable, SendableMetatype
  • 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
  • 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
  • Represents an element that can be displayed as a main action on a place view.

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

    Declaration

    Swift

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

    Declaration

    Swift

    enum OpenNowStatus
    extension OpenNowStatus : Copyable, Equatable, Escapable, Hashable, RawRepresentable
  • Identifies predefined types of actions that can be associated with a place.

    Note that a place may not support all actions. For example, if a place does not have a phone number, a call action will not be displayed.

    Declaration

    Swift

    enum PlaceActionID
    extension PlaceActionID : Equatable
  • 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/maps/documentation/places/ios-sdk/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
  • The preferred order of the returned media.

    Declaration

    Swift

    enum SearchMediaRankPreference
    extension SearchMediaRankPreference : Copyable, Equatable, Escapable, Hashable, Sendable, SendableMetatype
  • The preferred order of the returned reviews.

    Declaration

    Swift

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

    Declaration

    Swift

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