AutocompleteSearchOptions

fun AutocompleteSearchOptions(    query: String,     language: String,     limit: Int? = null,     position: GeoCoordinate? = null,     radius: Int? = null,     countryCodes: Set<String>,     resultTypes: Set<String>)

Parameters

query

The search query.

language

Language in which the autocomplete results should be returned. Must be one of the TomTom-supported IETF language tags. See https://developer.tomtom.com/search-api/search-api/supported-languages for more details.

limit

The maximum number of autocomplete results that will be returned.

position

The position around which results should be biased.

radius

The search radius in meters.

countryCodes

A set of country codes (e.g., FR,ES). This limits the autocomplete results to the specified countries.

resultTypes

Restricts the results to specific segments (e.g., "category", "brand", or "category,brand"). A result is only included if at least one segment is any of the indicated types.

Important: This is a Public Preview API. It may be changed or removed at any time.