AutocompleteSegmentPoiCategory

data class AutocompleteSegmentPoiCategory(val poiCategory: PoiCategory, val matchedAlternativeName: String = "") : AutocompleteSegment

Describes a POI category found within the autocomplete search response.

See also

https://developer.tomtom.com/search-api/search-api-documentation-search/fuzzy-search

Constructors

Link copied to clipboard
constructor(poiCategory: PoiCategory, matchedAlternativeName: String = "")

Properties

Link copied to clipboard

(Optional) category segment type. Present only if a part of the user query matches an alternative name instead of a primary name. For example, for the input query "petrol station" the category segment value is "gas station" and the matchedAlternativeName is "petrol station".

Link copied to clipboard

This is specific to category segment type. Can be used to restrict the results of other search endpoints to Points Of Interest (POI) from specific categories. See the categorySet parameter in fuzzy search API.