Enumerations
The following enumerations are available globally.
-
The type of autocomplete result.
See moreDeclaration
Swift
public enum AutocompleteResultType
-
Feedback event type that describes the user actions performed on a specific search result.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum FeedbackEventType
-
Factory for creating different kinds of instances of
FeedbackResultID
.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum FeedbackResultIDFactory
-
The protocol used to specify searchArea in SearchOptions
See moreDeclaration
Swift
public enum Geometry : Equatable, Hashable
-
Specifies the type of result sorting.
See moreDeclaration
Swift
public enum SortOrder
-
List of opening hours for a Point Of Interest.
See moreDeclaration
Swift
public enum OpeningHoursMode
extension OpeningHoursMode: Equatable
-
Defines vehicle types.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum VehicleType
-
AutocompleteSegment
represents an entity found within the autocomplete search term.An entity can be a brand, a point of interest (POI) category, or plain text. Every case has a corresponding associated object. This enum is used in
AutocompleteResult
to describe the matched entities returned from the autocomplete search.An example of handling segments:
See morelet options = AutocompleteOptions( query: "mar", position: .AMSTERDAM, radius: Measurement(value: 100, unit: .kilometers), countries: ["NL"] ) search.autocomplete(options: options) { result in if case let .success(response) = result { response.results.forEach { result in result.segments.forEach { segment in switch segment { case .brand(let brand): print("Brand: \(brand.brand.name)") case .poiCategory(let category): print("Category: \(category.poiCategory.name)") case .plainText(let text): print("Text: \(text.plainText)") @unknown default: print("unknown") } } } } } // Prints: // Category: Market // Brand: Marqt // Category: Marina // Brand: Marriott
Declaration
Swift
public enum AutocompleteSegment
-
Defines standard the POI category identifiers. The enum value provides the semantic of the POI category. Multiple
See morePOICategoryID
can have the sameStandardCategoryID
value.Declaration
Swift
public enum StandardCategoryID : Int