HybridSearch

Implementation of the TomTom's Hybrid Search API.

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

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Performs a synchronous Autocomplete Search using the provided AutocompleteOptions object. Delivers the Result using an AutocompleteResponse, or a SearchFailure if the action fails.

Performs an asynchronous autocomplete search using the provided AutocompleteOptions object. Returns the result using the provided AutocompleteCallback.

Link copied to clipboard
open override fun close()
Link copied to clipboard

Performing synchronous geometry data request is not supported by hybrid search at this moment.

Performing asynchronous geometry data request is not supported by hybrid search at this moment.

Link copied to clipboard

Performs a synchronous poi categories request using the provided PoiCategoryOptions object and delivers the Result by the provided PoiCategoryResponse, or a SearchFailure if the action fails.

Performs an asynchronous poi categories request using the provided PoiCategoryOptions object. Returns the result using the provided PoiCategoryCallback.

Link copied to clipboard

Performs a synchronous request to obtain the POI details described by the PoiDetailsOptions object. Delivers a Result containing a PoiDetailsResponse, or a SearchFailure if the action fails.

open override fun requestPoiDetails(options: PoiDetailsOptions, callback: PoiDetailsCallback): Cancellable

Performs an asynchronous request to obtain the POI details described by the PoiDetailsOptions object. Returns the result using the provided PoiDetailsCallback.

Link copied to clipboard
open override fun search(searchOptions: SearchOptions): Result<SearchResponse, SearchFailure>

Performs a synchronous search call using the provided SearchOptions object and delivers the Result by the provided SearchResponse, or a SearchFailure if the action fails.

open override fun search(options: SearchOptions, callback: SearchCallback): Cancellable

Performs an asynchronous search computing action based on the provided SearchOptions object and returns the result by the provided SearchCallback.