public class FuzzySearchQueryBuilder extends java.lang.Object implements IFuzzySearchQuery
FuzzySearchQuery.| Constructor and Description |
|---|
FuzzySearchQueryBuilder(java.lang.String term) |
| Modifier and Type | Method and Description |
|---|---|
FuzzySearchQuery |
build()
Creates new instance of
FuzzySearchQuery |
static FuzzySearchQueryBuilder |
create(java.lang.String term)
Builder used to create an instance of
FuzzySearchQuery, once constructed, the user cannot change the field values |
FuzzySearchQueryBuilder |
withBoundingBox(com.tomtom.online.sdk.common.location.BoundingBox boundingBox)
The bounding box for the search.
|
FuzzySearchQueryBuilder |
withCategory(java.lang.Boolean category)
If your search use case only requires POI results filtered by category, you may use the category endpoint.
|
FuzzySearchQueryBuilder |
withCountry(java.lang.String country)
Comma separated string of country codes (eg: FR,ES).
|
FuzzySearchQueryBuilder |
withExtendedPostalCodes(java.lang.String extendedPostalCodes)
Indexes for which extended postal codes should be included in the results.
|
FuzzySearchQueryBuilder |
withGeopoliticalView(java.lang.String geopoliticalView) |
FuzzySearchQueryBuilder |
withIdx(java.lang.String idx)
A comma separated list of indexes which should be utilized for the search.
|
FuzzySearchQueryBuilder |
withLanguage(java.lang.String language)
Language in which search results should be returned.
|
FuzzySearchQueryBuilder |
withLimit(java.lang.Integer limit)
The upper limit of the number of results.
|
FuzzySearchQueryBuilder |
withMaxFuzzyLevel(java.lang.Integer maxFuzzyLevel)
Maximum fuzzyness level to be used.
|
FuzzySearchQueryBuilder |
withMinFuzzyLevel(java.lang.Integer minFuzzyLevel)
Minimum fuzzyness level to be used.
|
FuzzySearchQueryBuilder |
withOffset(java.lang.Integer offset)
Starting offset of the returned results within the full result set.
|
FuzzySearchQueryBuilder |
withPosition(LatLng position)
The position where results should be biased.
|
FuzzySearchQueryBuilder |
withPreciseness(com.tomtom.online.sdk.common.location.LatLngAcc preciseness)
The position where results should be biased.
|
FuzzySearchQueryBuilder |
withTypeAhead(java.lang.Boolean typeAhead)
If the "typeahead" flag is set, the query will be interpreted as a partial input and the search will enter predictive mode.
|
public FuzzySearchQueryBuilder withLimit(java.lang.Integer limit)
IFuzzySearchQuerywithLimit in interface IFuzzySearchQuerylimit - upper limit of the number of results.public FuzzySearchQueryBuilder withOffset(java.lang.Integer offset)
IFuzzySearchQuerywithOffset in interface IFuzzySearchQueryoffset - starting offset of the returned results within the full result set.public FuzzySearchQueryBuilder withPosition(LatLng position)
IFuzzySearchQuerywithPosition in interface IFuzzySearchQueryposition - position where results should be biased.public FuzzySearchQueryBuilder withPreciseness(com.tomtom.online.sdk.common.location.LatLngAcc preciseness)
IFuzzySearchQuerywithPreciseness in interface IFuzzySearchQuerypreciseness - position where results should be biased. Position with accuracy in m.public FuzzySearchQueryBuilder withCountry(java.lang.String country)
IFuzzySearchQuerywithCountry in interface IFuzzySearchQuerycountry - string with country codes.public FuzzySearchQueryBuilder withExtendedPostalCodes(java.lang.String extendedPostalCodes)
IFuzzySearchQuerywithExtendedPostalCodes in interface IFuzzySearchQueryextendedPostalCodes - string with postal codes.public FuzzySearchQueryBuilder withIdx(java.lang.String idx)
IFuzzySearchQuerywithIdx in interface IFuzzySearchQueryidx - indexes to be utilized for the search.public FuzzySearchQueryBuilder withBoundingBox(com.tomtom.online.sdk.common.location.BoundingBox boundingBox)
IFuzzySearchQuerywithBoundingBox in interface IFuzzySearchQueryboundingBox - top left position of the bounding box and bottom right position of the bounding box.public FuzzySearchQueryBuilder withTypeAhead(java.lang.Boolean typeAhead)
IFuzzySearchQuerywithTypeAhead in interface IFuzzySearchQuerytypeAhead - whether the predictive mode is enabled.public FuzzySearchQueryBuilder withCategory(java.lang.Boolean category)
IFuzzySearchQuerywithCategory in interface IFuzzySearchQuerycategory - whether the category search is enabled.public FuzzySearchQueryBuilder withLanguage(java.lang.String language)
IFuzzySearchQuerywithLanguage in interface IFuzzySearchQuerylanguage - language in which search results should be returned.public FuzzySearchQueryBuilder withMinFuzzyLevel(java.lang.Integer minFuzzyLevel)
IFuzzySearchQuerywithMinFuzzyLevel in interface IFuzzySearchQueryminFuzzyLevel - minimum fuzzyness level to be used.public FuzzySearchQueryBuilder withMaxFuzzyLevel(java.lang.Integer maxFuzzyLevel)
IFuzzySearchQuerywithMaxFuzzyLevel in interface IFuzzySearchQuerymaxFuzzyLevel - maximum fuzzyness level to be used.public FuzzySearchQueryBuilder withGeopoliticalView(java.lang.String geopoliticalView)
public static FuzzySearchQueryBuilder create(java.lang.String term)
FuzzySearchQuery, once constructed, the user cannot change the field valuesFuzzySearchQuery to be used for further processingpublic FuzzySearchQuery build()
FuzzySearchQuery