Package-level declarations

Types

Link copied to clipboard
data class PlaceDetails(    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,     val entryPoints: List<EntryPoint> = emptyList())

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 language: Locale? = 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 PlaceDetails 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): PlaceDetails

Convert a SearchResult to a PlaceDetails.