sdk-search / com.tomtom.online.sdk.search.extensions / SearchService

SearchService

open class SearchService : Service, SearchApi

TomTom Search API wrapped within the Android service. It contains methods to use Tomtom's search engine and it provides support for standard callback calls and RxJava2 Observables. It allows to create a single search instance across an application.

Constructors

<init>

SearchService()

Default constructor for search service.

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(autocompleteSpecification: AutocompleteSpecification!): Result<AutocompleteSuggestion!>!
open fun autocompleteSearch(autocompleteSpecification: AutocompleteSpecification!, callback: AutocompleteSuggestionCallback!): 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!>

geometrySearch

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

isInternetAvailable

open fun isInternetAvailable(): Boolean

onBind

open fun onBind(intent: Intent!): IBinder?

onStartCommand

open fun onStartCommand(intent: Intent!, flags: Int, startId: Int): Int

poiCategoriesSearch

open fun poiCategoriesSearch(query: PoiCategoriesQuery!, listener: PoiCategoriesSearchResultListener!): Unit
open fun poiCategoriesSearch(poiCategoriesSpecification: PoiCategoriesSpecification!): Result<MutableList<PoiCategory!>!>!
open fun poiCategoriesSearch(specification: PoiCategoriesSpecification!, callback: PoiCategoriesCallback!): Unit
open fun poiCategoriesSearch(query: PoiCategoriesQuery!): Single<PoiCategoriesResponse!>!

poiDetailsSearch

open fun poiDetailsSearch(specification: PoiDetailsSpecification!): Result<PoiDetails!>!
open fun poiDetailsSearch(specification: PoiDetailsSpecification!, callback: PoiDetailsCallback!): Unit

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(fuzzySearchSpecification: FuzzySearchSpecification!): Result<FuzzyOutcome!>!
open fun search(fuzzySearchSpecification: FuzzySearchSpecification!, callback: FuzzyOutcomeCallback!): Unit
open fun search(searchQuery: FuzzySearchQuery!): Single<FuzzySearchResponse!>!