Package com.tomtom.sdk.search.ui.model
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: GeoCoordinate)
Content copied to clipboard
Information about the retrieved place.
Link copied to clipboard
data class SearchApiParameters( val limit: Int = 10, val typeAhead: Boolean = true, val position: GeoCoordinate? = null, val radius: Float? = null, val minFuzzyLevel: Int? = null, val maxFuzzyLevel: Int? = null, val language: String? = null) : Parcelable
Content copied to clipboard
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: Units = Units.AUTO) : Parcelable
Content copied to clipboard
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)
Content copied to clipboard
Search suggestion data.
Functions
Link copied to clipboard
fun SearchResult.toPlace(units: Units, distanceFormatter: DistanceFormatter): Place
Content copied to clipboard
Convert a SearchResult to a Place.