sdk-search / com.tomtom.online.sdk.search.fuzzy / FuzzyLocationDescriptor / Builder

Builder

@Beta(2020, 12) class Builder

Builder used to create an instance of FuzzyLocationDescriptor. Once constructed, the user cannot change the field values.

Constructors

<init>

Builder()

Builder used to create an instance of FuzzyLocationDescriptor. Once constructed, the user cannot change the field values.

Functions

boundingBox

fun boundingBox(boundingBox: BoundingBox): FuzzyLocationDescriptor.Builder

The bounding box for the search.

build

fun build(): FuzzyLocationDescriptor

Constructs a new FuzzySearchSpecification.

countryCodes

fun countryCodes(countryCodes: Set<String>): FuzzyLocationDescriptor.Builder

A comma-separated string of country codes (e.g., FR,ES). This will limit the search to the specified countries.

mapCodes

fun mapCodes(mapCodes: List<MapCodeType>): FuzzyLocationDescriptor.Builder

The list of supported MapCodes.

positionBias

fun positionBias(positionBias: LatLngBias): FuzzyLocationDescriptor.Builder

The position where results should be biased. The radius parameter is specified in meters.