Package-level declarations

Types

Link copied to clipboard
data class Place(val name: String = "", val street: String = "", val address: String = "", val city: String = "", val citySubdivision: String = "", val countryTertiarySubdivision: String = "", val countrySecondarySubdivision: String = "", val countrySubdivision: String = "", val country: String = "", val distance: FormattedDistance? = null, val position: GeoPoint)

Information about the retrieved place.

Link copied to clipboard
data class SearchApiParameters(val limit: Int = 10, val typeAhead: Boolean = true, val position: GeoPoint? = null, val radius: Float? = null, val minFuzzyLevel: Int? = null, val maxFuzzyLevel: Int? = null, val language: String? = null) : Parcelable

Parameters used to configure the Search API query.

Link copied to clipboard
data class SearchProperties(val searchApiKey: String, val searchApiParameters: SearchApiParameters = SearchApiParameters(), val commands: List<String> = listOf(), val units: UnitSystem = getDefaultUnitSystem()) : Parcelable

Describes the properties used in com.tomtom.sdk.search.ui.SearchView and com.tomtom.sdk.search.ui.SearchFragment to obtain Place elements for a given input query.

Link copied to clipboard
data class SearchSuggestion(val imageResId: Int, val title: String, val subtitle: String, val query: String)

Search suggestion data.

Functions

Link copied to clipboard
fun SearchResult.toPlace(units: UnitSystem, distanceFormatter: DistanceFormatter): Place

Convert a SearchResult to a Place.