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
Limit results to only those contained within the supplied bounding box.
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
Limit results to one or more countries.
fun countries(countries: List<Country>): SearchOptions.Builder
Limit results to one or more countries.
fuzzyMatch
Link copied to clipboard
fun fuzzyMatch(fuzzyMatch: Boolean): SearchOptions.Builder
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
fun ignoreIndexableRecords(ignoreIndexableRecords: Boolean): SearchOptions.Builder
Non-verified query parameters, that will be added to the server API request.
indexableRecordsDistanceThresholdMeters
Link copied to clipboard
fun indexableRecordsDistanceThresholdMeters(threshold: Double?): SearchOptions.Builder
Allows to look up for indexable records only within specified distance threshold, i.e.
languages
Link copied to clipboard
fun languages(vararg languages: Language): SearchOptions.Builder
Specify the user’s language.
fun languages(languages: List<Language>): SearchOptions.Builder
Specify the user’s language.
limit
Link copied to clipboard
fun limit(limit: Int): SearchOptions.Builder
Specify the maximum number of results to return.
navigationOptions
Link copied to clipboard
fun navigationOptions(navigationOptions: SearchNavigationOptions): SearchOptions.Builder
Navigation options used for proper calculation of ETA and results ranking.
origin
Link copied to clipboard
fun origin(origin: Point): SearchOptions.Builder
Point for ETA calculation from it to search result.
proximity
Link copied to clipboard
fun proximity(proximity: Point?): SearchOptions.Builder
Bias the response to favor results that are closer to this location, provided as Point class instance.
requestDebounce
Link copied to clipboard
fun requestDebounce(debounce: Int): SearchOptions.Builder
Request debounce value in milliseconds.
routeOptions
Link copied to clipboard
fun routeOptions(routeOptions: RouteOptions): SearchOptions.Builder
Options to configure Route for search along the route functionality.
types
Link copied to clipboard
fun types(vararg types: QueryType): SearchOptions.Builder
Filter results to include only a subset (one or more) of the available feature types.
fun types(types: List<QueryType>): SearchOptions.Builder
Filter results to include only a subset (one or more) of the available feature types.
unsafeParameters
Link copied to clipboard
fun unsafeParameters(unsafeParameters: Map<String, String>): SearchOptions.Builder
Non-verified query parameters, that will be added to the server API request.