Builder

class Builder

Builder for comfortable creation of SearchOptions instance.

Constructors

Builder
Link copied to clipboard
fun Builder()

Functions

boundingBox
Link copied to clipboard
fun boundingBox(boundingBox: BoundingBox): SearchOptions.Builder
Set SearchOptions.boundingBox for builder.
build
Link copied to clipboard
fun build(): SearchOptions
Create SearchOptions instance from builder data.
countries
Link copied to clipboard
fun countries(vararg countries: Country): SearchOptions.Builder
Set SearchOptions.countries for builder.
fun countries(countries: List<Country>): SearchOptions.Builder
Set SearchOptions.countries for builder.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
fuzzyMatch
Link copied to clipboard
fun fuzzyMatch(fuzzyMatch: Boolean): SearchOptions.Builder
Set SearchOptions.fuzzyMatch for builder.
hashCode
Link copied to clipboard
open fun hashCode(): Int
ignoreIndexableRecords
Link copied to clipboard
fun ignoreIndexableRecords(ignoreIndexableRecords: Boolean): SearchOptions.Builder
languages
Link copied to clipboard
fun languages(vararg languages: Language): SearchOptions.Builder
Set SearchOptions.languages for builder.
fun languages(languages: List<Language>): SearchOptions.Builder
Set SearchOptions.languages for builder.
limit
Link copied to clipboard
fun limit(limit: Int): SearchOptions.Builder
Set SearchOptions.limit for builder.
navigationOptions
Link copied to clipboard
fun navigationOptions(navigationOptions: SearchNavigationOptions): SearchOptions.Builder
origin
Link copied to clipboard
fun origin(origin: Point): SearchOptions.Builder
Set SearchOptions.origin for builder.
proximity
Link copied to clipboard
fun proximity(proximity: Point?): SearchOptions.Builder
Set SearchOptions.proximity for builder.
requestDebounce
Link copied to clipboard
fun requestDebounce(debounce: Int): SearchOptions.Builder
routeOptions
Link copied to clipboard
fun routeOptions(routeOptions: RouteOptions): SearchOptions.Builder
toString
Link copied to clipboard
open fun toString(): String
types
Link copied to clipboard
fun types(vararg types: QueryType): SearchOptions.Builder
Set SearchOptions.types for builder.
fun types(types: List<QueryType>): SearchOptions.Builder
Set SearchOptions.types for builder.
unsafeParameters
Link copied to clipboard
fun unsafeParameters(unsafeParameters: Map<String, String>): SearchOptions.Builder

Properties

boundingBox
Link copied to clipboard
var boundingBox: BoundingBox? = null
Limit results to only those contained within the supplied bounding box.
countries
Link copied to clipboard
var countries: List<Country>? = null
Limit results to one or more countries.
fuzzyMatch
Link copied to clipboard
var 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
var ignoreIndexableRecords: Boolean = false
Specify whether to ignore com.mapbox.search.record.IndexableRecord results or not, default is false.
languages
Link copied to clipboard
var languages: List<Language>?
Specify the user’s language.
limit
Link copied to clipboard
var limit: Int? = null
Specify the maximum number of results to return.
navigationOptions
Link copied to clipboard
var navigationOptions: SearchNavigationOptions? = null
Navigation options used for proper calculation of ETA and results ranking.
origin
Link copied to clipboard
var origin: Point? = null
Point for ETA calculation from it to search result.
proximity
Link copied to clipboard
var proximity: Point? = null
Bias the response to favor results that are closer to this location, provided as Point class instance.
requestDebounce
Link copied to clipboard
var requestDebounce: Int? = null
Request debounce value in milliseconds.
routeOptions
Link copied to clipboard
var routeOptions: RouteOptions? = null
Options to configure Route for search along the route functionality.
types
Link copied to clipboard
var types: List<QueryType>? = null
Filter results to include only a subset (one or more) of the available feature types.
unsafeParameters
Link copied to clipboard
var unsafeParameters: Map<String, String>? = null
Non-verified query parameters, that will be added to the server API request.