public class AutocompleteSearchQuery
extends com.tomtom.online.sdk.common.jni.BaseRequestQuery
Constructor and Description |
---|
AutocompleteSearchQuery(java.lang.String term,
java.lang.String language,
java.lang.Integer limit,
LatLng position,
java.lang.Integer radius,
java.lang.String country,
java.util.List<ResultType> resultTypes)
The constructor for an Autocomplete Search query which enables you to make a more meaningful Search
call by recognizing entities inside an input query and offering them as query terms.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
long |
getNativeHandle() |
long |
prepare() |
public AutocompleteSearchQuery(java.lang.String term, java.lang.String language, java.lang.Integer limit, LatLng position, java.lang.Integer radius, java.lang.String country, java.util.List<ResultType> resultTypes)
term
- The searched term.language
- Language in which autocomplete results should be returned. Should be one of the TomTom supported IETF language tags.limit
- The maximum number of autocomplete results that will be returned. Default value is 5, maximum value is 10position
- The position where results should be biased.radius
- A radius in meters.country
- A comma-separated string of country codes (e.g., FR,ES).
This will limit the autocomplete results to the specified countries.resultTypes
- Restricts the result space based on their segment types (e.g., "category", "brand" or "category,brand").
A result is only included if at least one segment is of any of the indicated types.