Search

interface Search : AutoCloseable

Interface of the search API.

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
abstract fun close()
Link copied to clipboard

Performs a synchronous geometry data request described by the provided GeometryDataOptions object. Delivers the Result containing a GeometryDataResponse, or a SearchFailure if the action fails.

Performs an asynchronous geometry data request described by the provided GeometryDataOptions object. Returns the result using the provided GeometryDataCallback.

Link copied to clipboard

Synchronously provides a full list of POI categories and subcategories together with their translations and synonyms.

Asynchronously provides a complete list of POI categories and subcategories with their translations and synonyms.

Link copied to clipboard

Synchronously, provides POI details by a given POI identifier.

Asynchronously, provides POI details by a given POI identifier.

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

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

abstract 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.

Link copied to clipboard
abstract fun sendFeedback(feedbackEvent: FeedbackEvent): Result<Unit, SearchFailure>

Synchronously sends a feedback event for the search.

abstract fun sendFeedback(feedbackEvent: FeedbackEvent, callback: FeedbackCallback? = null): Cancellable?

Asynchronously sends a feedback event for the search.