sdk-search / com.tomtom.online.sdk.search / OnlineSearchApi

OnlineSearchApi

open class OnlineSearchApi : SearchApi

Default TomTom implementation of the entry point to perform a search / reverse geocoding action based on TomTom's Search API.

Inherited Properties

DEFAULT_ONLINE_SEARCH_ENDPOINT

static val DEFAULT_ONLINE_SEARCH_ENDPOINT: String

The default TomTom Search API endpoint.

DEFAULT_ONLINE_SEARCH_SERVICE_API_VERSION

static val DEFAULT_ONLINE_SEARCH_SERVICE_API_VERSION: String

The default TomTom Search API service version.

Functions

additionalDataSearch

open fun additionalDataSearch(query: AdditionalDataSearchQuery!, listener: AdditionalDataSearchResultListener!): Unit
open fun additionalDataSearch(query: AdditionalDataSearchQuery!): Single<AdditionalDataSearchResponse!>!

alongRouteSearch

open fun alongRouteSearch(query: AlongRouteSearchQuery!, listener: AlongRouteSearchResultListener!): Unit
open fun alongRouteSearch(query: AlongRouteSearchQuery!): Single<AlongRouteSearchResponse!>!

autocompleteSearch

open fun autocompleteSearch(query: AutocompleteSearchQuery!, listener: AutocompleteSearchResultListener!): Unit
open fun autocompleteSearch(query: AutocompleteSearchQuery!): Single<AutocompleteSearchResponse!>!

batchSearch

open fun batchSearch(query: BatchSearchQuery!, listener: BatchSearchResultListener!): Unit
open fun batchSearch(query: BatchSearchQuery!): Single<BatchSearchResponse!>!

cancelSearchIfRunning

open fun cancelSearchIfRunning(): Unit

chargingStationsSearch

open fun chargingStationsSearch(specification: ChargingStationsSpecification, callback: ChargingStationsCallback): Unit
open fun chargingStationsSearch(specification: ChargingStationsSpecification): Result<ChargingStations!>

create

open static fun create(context: Context): SearchApi!

Creates a new SearchAPI object which will use the provided Search API Key. It uses default values for a Search service endpoint and API version.

open static fun create(context: Context, apiKey: String!): SearchApi!

Creates a new SearchAPI object which will use the Search API Key obtained from a parameter. It uses default values for the Search service endpoint and API version.

geometrySearch

open fun geometrySearch(query: GeometrySearchQuery!, listener: GeometrySearchResultListener!): Unit
open fun geometrySearch(query: GeometrySearchQuery!): Single<GeometrySearchResponse!>!

getAdditionalDataSearchApi

open fun getAdditionalDataSearchApi(): AdditionalDataSearchApi!

getAlongRouteSearchApi

open fun getAlongRouteSearchApi(): AlongRouteSearchApi!

getAutocompleteSearchApi

open fun getAutocompleteSearchApi(): AutocompleteSearchApi!

getBatchSearchApi

open fun getBatchSearchApi(): BatchSearchApi!

getFuzzySearchApi

open fun getFuzzySearchApi(): FuzzySearchApi!

getGeometrySearchApi

open fun getGeometrySearchApi(): GeometrySearchApi!

getPoiCategoriesSearchApi

open fun getPoiCategoriesSearchApi(): PoiCategoriesSearchApi!

getRevgeoSearchApi

open fun getRevgeoSearchApi(): RevGeoSearchApi!

isInternetAvailable

open fun isInternetAvailable(): Boolean

poiCategoriesSearch

open fun poiCategoriesSearch(query: PoiCategoriesQuery!, listener: PoiCategoriesSearchResultListener!): Unit
open fun poiCategoriesSearch(query: PoiCategoriesQuery!): Single<PoiCategoriesResponse!>!

reverseGeocoding

open fun reverseGeocoding(query: ReverseGeocoderSearchQuery!, listener: RevGeoSearchResultListener!): Unit
open fun reverseGeocoding(query: ReverseGeocoderSearchQuery!): Single<ReverseGeocoderSearchResponse!>!

search

open fun search(searchQuery: FuzzySearchQuery!, listener: FuzzySearchResultListener!): Unit
open fun search(searchQuery: FuzzySearchQuery!): Single<FuzzySearchResponse!>!