Page Summary
-
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.
-
PlacePropertyis 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 AutocompleteListDensityextension AutocompleteListDensity : Copyable, Equatable, Escapable, Hashable -
AutocompleteSuggestion enum with an associated value that contains the actual suggestion.
Declaration
Swift
enum AutocompleteSuggestionextension AutocompleteSuggestion : Equatable, Hashable, Sendable, SendableMetatype -
The icon to display in
placeAutocompleteorbasicPlaceAutocomplete.Declaration
Swift
enum AutocompleteUIIconextension AutocompleteUIIcon : Copyable, Equatable, Escapable, Hashable -
Describes the business status of a place.
Declaration
Swift
enum BusinessStatusextension 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 DayOfWeekextension DayOfWeek : Copyable, Equatable, Escapable, Hashable, RawRepresentable -
Describes the EV charging connector type.
Declaration
Swift
enum EVConnectorTypeextension EVConnectorType : CaseIterable, Copyable, Equatable, Escapable, Hashable, RawRepresentable, Sendable, SendableMetatype -
Describes the fuel option type. LINT.IfChange(FuelType)
Declaration
Swift
enum FuelTypeextension FuelType : CaseIterable, Copyable, Equatable, Escapable, Hashable, RawRepresentable, Sendable, SendableMetatype -
Identifies the type of secondary opening hours.
HoursTypeis only set for secondary opening hours (i.e. opening hours returned fromPlacesecondaryOpeningHours). Hours types described here: https://developers.google.com/maps/documentation/places/web-service/details#PlaceOpeningHours-typeDeclaration
Swift
enum HoursTypeextension 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 OpenNowStatusextension 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 PlaceActionStyleextension PlaceActionStyle : Copyable, Equatable, Escapable, Hashable -
The content type of the place details compact view.
Declaration
Swift
enum PlaceDetailsCompactContentextension PlaceDetailsCompactContent : Equatable, Hashable, Sendable, SendableMetatype -
The content that can be displayed in the place details full view.
Declaration
Swift
enum PlaceDetailsContentextension PlaceDetailsContent : Equatable, Hashable, Sendable, SendableMetatype -
Declaration
Swift
enum PlaceDetailsViewOrientationextension PlaceDetailsViewOrientation : Copyable, Equatable, Escapable, Hashable -
The place identifier.
Declaration
Swift
enum PlaceIdentifier -
The properties represent individual information that can be requested for a
Placeobject.If no request properties are set, the
Placeobject 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 PlacePropertyextension PlaceProperty : Copyable, Equatable, Escapable, Hashable -
The types of content that should be displayed in the place search view.
Declaration
Swift
enum PlaceSearchContentextension PlaceSearchContent : Equatable, Hashable, Sendable, SendableMetatype -
The type of request that should be used to fetch the place search results.
Declaration
Swift
enum PlaceSearchViewRequestextension PlaceSearchViewRequest : Equatable -
The attribution position in the place view.
Declaration
Swift
enum PlaceViewAttributionPositionextension PlaceViewAttributionPosition : Copyable, Equatable, Escapable, Hashable, Sendable, SendableMetatype -
The size of the media in the place view.
Declaration
Swift
enum PlaceViewMediaSizeextension PlaceViewMediaSize : Copyable, Equatable, Escapable, Hashable, Sendable, SendableMetatype -
The orientation of the place view.
Declaration
Swift
enum PlaceViewOrientationextension PlaceViewOrientation : Copyable, Equatable, Escapable, Hashable, Sendable, SendableMetatype -
The attribution color.
Declaration
Swift
enum PlacesAttributionColorextension PlacesAttributionColor : Equatable, Hashable, Sendable, SendableMetatype -
Places error types.
Declaration
Swift
enum PlacesErrorextension PlacesError : Equatable, Error, Hashable, Sendable, SendableMetatype -
The price level of a place.
Declaration
Swift
enum PriceLevelextension PriceLevel : CaseIterable, Equatable, Hashable, Identifiable -
A set of values that specify factors to take into consideration when calculating the routes.
Declaration
Swift
enum RoutingPreferenceextension RoutingPreference : CaseIterable, Copyable, Equatable, Escapable, Hashable, RawRepresentable, Sendable, SendableMetatype -
Travel mode for routing.
Declaration
Swift
enum TravelModeextension TravelMode : CaseIterable, Copyable, Equatable, Escapable, Hashable, RawRepresentable, Sendable, SendableMetatype