AutocompleteSegmentPoiCategory

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

Describes a Point of Interest category (PoiCategory) 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.

Functions

Link copied to clipboard
operator fun component1(): PoiCategory
Link copied to clipboard
operator fun component2(): String
Link copied to clipboard
fun copy(poiCategory: PoiCategory = this.poiCategory, matchedAlternativeName: String = this.matchedAlternativeName): AutocompleteSegmentPoiCategory
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String