AutocompleteSegmentPOICategory
public struct AutocompleteSegmentPOICategory
Describes a POI category autocomplete segment.
A POI category segment contains a POICategory which can be used as a filter in search.
-
Creates a POI category autocomplete segment.
Declaration
Swift
public init(poiCategory: POICategory, matchedAlternativeName: String?)Parameters
poiCategorythe POI category in the segment.
matchedAlternativeNamealternative name of the matched POI category. For example, for query “petrol station”, the poiCategory.name is “petrol station”, while matchedAlternativeName is “petrol station”.
-
The POI category in the segment.
Declaration
Swift
public let poiCategory: POICategory -
The alternative name of the matched POI category.
Declaration
Swift
public let matchedAlternativeName: String?
AutocompleteSegmentPOICategory Structure Reference