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.

Lifecycle

  • Creates a POI category autocomplete segment.

    Declaration

    Swift

    public init(poiCategory: POICategory, matchedAlternativeName: String?)

    Parameters

    poiCategory

    the POI category in the segment.

    matchedAlternativeName

    alternative name of the matched POI category. For example, for query “petrol station”, the poiCategory.name is “petrol station”, while matchedAlternativeName is “petrol station”.

Public

  • 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?