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

Builder

@Beta(2020, 12) class Builder

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

Parameters

term - The searched term.

Constructors

<init>

Builder(term: String)

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

Functions

build

fun build(): FuzzySearchSpecification

Constructs a new FuzzySearchSpecification.

combustionDescriptor

fun combustionDescriptor(combustionVehicleDescriptor: CombustionVehicleDescriptor): FuzzySearchSpecification.Builder

Specifies parameters related to the combustion vehicle.

evDescriptor

fun evDescriptor(electricVehicleDescriptor: ElectricVehicleDescriptor): FuzzySearchSpecification.Builder

Specifies parameters related to EV (Electric Vehicle).

locationDescriptor

fun locationDescriptor(fuzzyLocationDescriptor: FuzzyLocationDescriptor): FuzzySearchSpecification.Builder

Specifies the location that will be used in the Fuzzy Search.

searchEngineDescriptor

fun searchEngineDescriptor(fuzzySearchEngineDescriptor: FuzzySearchEngineDescriptor): FuzzySearchSpecification.Builder

Specifies the Search engine parameters.

timeDescriptor

fun timeDescriptor(timeDescriptor: TimeDescriptor): FuzzySearchSpecification.Builder

Specifies the timezone and time modes.