sdk-search / com.tomtom.online.sdk.search.autocomplete / AutocompleteLocationDescriptor / Builder

Builder

@Beta(2020, 12) class Builder

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

Constructors

<init>

Builder()

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

Functions

build

fun build(): AutocompleteLocationDescriptor

Constructs a new AutocompleteSpecification.

countryCodes

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

A set of country codes (e.g., FR,ES). This will limit the Autocomplete results to the specified countries.

positionBias

fun positionBias(positionBias: LatLngBias): AutocompleteLocationDescriptor.Builder

The position where results should be biased.