CategorySearchOptions

class CategorySearchOptions @JvmOverloads() constructor(proximity: Point?, boundingBox: BoundingBox?, countries: List<Country>?, fuzzyMatch: Boolean?, languages: List<Language>?, limit: Int?, requestDebounce: Int?, origin: Point?, navigationProfile: SearchNavigationProfile?, routeOptions: RouteOptions?, unsafeParameters: Map<String, String>?, ignoreIndexableRecords: Boolean, indexableRecordsDistanceThresholdMeters: Double?) : Parcelable

Search options, used for category search.

See also

Constructors

CategorySearchOptions
Link copied to clipboard
fun CategorySearchOptions(proximity: Point? = null, boundingBox: BoundingBox? = null, countries: List<Country>? = null, fuzzyMatch: Boolean? = null, languages: List<Language>? = defaultSearchOptionsLanguage(), limit: Int? = null, requestDebounce: Int? = null, origin: Point? = null, navigationProfile: SearchNavigationProfile? = null, routeOptions: RouteOptions? = null, unsafeParameters: Map<String, String>? = null, ignoreIndexableRecords: Boolean = false, indexableRecordsDistanceThresholdMeters: Double? = null)

Types

Builder
Link copied to clipboard
class Builder
Builder for comfortable creation of CategorySearchOptions instance.

Functions

copy
Link copied to clipboard
fun copy(proximity: Point? = this.proximity, boundingBox: BoundingBox? = this.boundingBox, countries: List<Country>? = this.countries, fuzzyMatch: Boolean? = this.fuzzyMatch, languages: List<Language>? = this.languages, limit: Int? = this.limit, requestDebounce: Int? = this.requestDebounce, origin: Point? = this.origin, navigationProfile: SearchNavigationProfile? = this.navigationProfile, routeOptions: RouteOptions? = this.routeOptions, unsafeParameters: Map<String, String>? = this.unsafeParameters, ignoreIndexableRecords: Boolean = this.ignoreIndexableRecords, indexableRecordsDistanceThresholdMeters: Double? = this.indexableRecordsDistanceThresholdMeters): CategorySearchOptions
Creates new CategorySearchOptions from current instance.
describeContents
Link copied to clipboard
abstract fun describeContents(): Int
toBuilder
Link copied to clipboard
fun toBuilder(): CategorySearchOptions.Builder
Creates new CategorySearchOptions.Builder from current CategorySearchOptions instance.
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

boundingBox
Link copied to clipboard
val boundingBox: BoundingBox? = null
Limit results to only those contained within the supplied bounding box.
countries
Link copied to clipboard
val countries: List<Country>? = null
Limit results to one or more countries.
fuzzyMatch
Link copied to clipboard
val fuzzyMatch: Boolean? = null
Specify whether the Geocoding API should attempt approximate, as well as exact, matching when performing searches (true, default), or whether it should opt out of this behavior and only attempt exact matching (false).
ignoreIndexableRecords
Link copied to clipboard
val ignoreIndexableRecords: Boolean = false
Specify whether to ignore com.mapbox.search.record.IndexableRecord results or not, default is false.
indexableRecordsDistanceThresholdMeters
Link copied to clipboard
val indexableRecordsDistanceThresholdMeters: Double? = null
Allows to look up for indexable records only within specified distance threshold, i.e.
languages
Link copied to clipboard
val languages: List<Language>?
Specify the user’s language.
limit
Link copied to clipboard
val limit: Int? = null
Specify the maximum number of results to return, including results from com.mapbox.search.record.IndexableDataProvider.
navigationProfile
Link copied to clipboard
val navigationProfile: SearchNavigationProfile? = null
Type of movement.
origin
Link copied to clipboard
val origin: Point? = null
Point for alternative search ranking logic, that is turned on if navigationProfile is specified.
proximity
Link copied to clipboard
val proximity: Point? = null
Bias the response to favor results that are closer to this location, provided as Point.
requestDebounce
Link copied to clipboard
val requestDebounce: Int? = null
Request debounce value in milliseconds.
routeOptions
Link copied to clipboard
val routeOptions: RouteOptions? = null
Options to configure Route for search along the route functionality.
unsafeParameters
Link copied to clipboard
val unsafeParameters: Map<String, String>? = null
Non-verified query parameters, that will be added to the server API request.