public class FuzzySearchQueryBuilder extends java.lang.Object implements FuzzySearchQuery
FuzzySearchQuery
.Constructor and Description |
---|
FuzzySearchQueryBuilder(java.lang.String term) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
long |
getNativeHandle() |
FuzzySearchQuery |
withBoundingBox(LatLng topLeft,
LatLng bottomRight)
The boundin box for the search.
|
FuzzySearchQuery |
withCategory(boolean isCategory)
If your search use case only requires POI results filtered by category, you may use the category endpoint.
|
FuzzySearchQuery |
withCountry(java.lang.String country)
Comma separated string of country codes (eg: FR,ES).
|
FuzzySearchQuery |
withExtendedPostalCodes(java.lang.String extendedPostalCodesFor)
Indexes for which extended postal codes should be included in the results.
|
FuzzySearchQuery |
withIdx(java.lang.String idxSet)
A comma separated list of indexes which should be utilized for the search.
|
FuzzySearchQuery |
withLanguage(java.lang.String language)
Language in which search results should be returned.
|
FuzzySearchQuery |
withLimit(int limit)
The upper limit of the number of results.
|
FuzzySearchQuery |
withMaxFuzzyLevel(int maxFuzzyLevel)
Maximum fuzzyness level to be used.
|
FuzzySearchQuery |
withMinFuzzyLevel(int minFuzzyLevel)
Minimum fuzzyness level to be used.
|
FuzzySearchQuery |
withOffset(int offset)
Starting offset of the returned results within the full result set.
|
FuzzySearchQuery |
withPosition(LatLng position)
The position where results should be biased.
|
FuzzySearchQuery |
withPosition(LatLng position,
int radius)
The position where results should be biased.
|
FuzzySearchQuery |
withTypeAhead(boolean isTypeAhead)
If the "typeahead" flag is set, the query will be interpreted as a partial input and the search will enter predictive mode.
|
public long getNativeHandle()
getNativeHandle
in interface com.tomtom.online.sdk.common.jni.NativeObject
public void dispose()
dispose
in interface com.tomtom.online.sdk.common.jni.NativeObject
public FuzzySearchQuery withLimit(int limit)
FuzzySearchQuery
withLimit
in interface FuzzySearchQuery
limit
- upper limit of the number of results.public FuzzySearchQuery withOffset(int offset)
FuzzySearchQuery
withOffset
in interface FuzzySearchQuery
offset
- starting offset of the returned results within the full result set.public FuzzySearchQuery withPosition(LatLng position)
FuzzySearchQuery
withPosition
in interface FuzzySearchQuery
position
- position where results should be biased.public FuzzySearchQuery withPosition(LatLng position, int radius)
FuzzySearchQuery
withPosition
in interface FuzzySearchQuery
position
- position where results should be biased.radius
- search radius.public FuzzySearchQuery withCountry(java.lang.String country)
FuzzySearchQuery
withCountry
in interface FuzzySearchQuery
country
- string with country codes.public FuzzySearchQuery withExtendedPostalCodes(java.lang.String extendedPostalCodesFor)
FuzzySearchQuery
withExtendedPostalCodes
in interface FuzzySearchQuery
extendedPostalCodesFor
- string with postal codes.public FuzzySearchQuery withIdx(java.lang.String idxSet)
FuzzySearchQuery
withIdx
in interface FuzzySearchQuery
idxSet
- indexes to be utilized for the search.public FuzzySearchQuery withBoundingBox(LatLng topLeft, LatLng bottomRight)
FuzzySearchQuery
withBoundingBox
in interface FuzzySearchQuery
topLeft
- top left position of the bounding box.bottomRight
- bottom right position of the bounding box.public FuzzySearchQuery withTypeAhead(boolean isTypeAhead)
FuzzySearchQuery
withTypeAhead
in interface FuzzySearchQuery
isTypeAhead
- whether the predictive mode is enabled.public FuzzySearchQuery withCategory(boolean isCategory)
FuzzySearchQuery
withCategory
in interface FuzzySearchQuery
isCategory
- whether the category search is enabled.public FuzzySearchQuery withLanguage(java.lang.String language)
FuzzySearchQuery
withLanguage
in interface FuzzySearchQuery
language
- language in which search results should be returned.public FuzzySearchQuery withMinFuzzyLevel(int minFuzzyLevel)
FuzzySearchQuery
withMinFuzzyLevel
in interface FuzzySearchQuery
minFuzzyLevel
- minimum fuzzyness level to be used.public FuzzySearchQuery withMaxFuzzyLevel(int maxFuzzyLevel)
FuzzySearchQuery
withMaxFuzzyLevel
in interface FuzzySearchQuery
maxFuzzyLevel
- maximum fuzzyness level to be used.