public class GeometrySearchQueryBuilder extends java.lang.Object implements IGeometrySearchQuery
GeometrySearchQuery
.Constructor and Description |
---|
GeometrySearchQueryBuilder(java.lang.String term,
java.util.List<Geometry> geometries) |
Modifier and Type | Method and Description |
---|---|
GeometrySearchQuery |
build()
Creates new instance of
GeometrySearchQuery |
static GeometrySearchQueryBuilder |
create(java.lang.String term,
java.util.List<Geometry> geometries)
Builder used to create an instance of
GeometrySearchQuery , once constructed, the user cannot change the field values |
GeometrySearchQueryBuilder |
withExtendedPostalCodesFor(java.lang.String extendedPostalCodesFor)
Indexes for which extended postal codes should be included in the results.
|
GeometrySearchQueryBuilder |
withGeopoliticalView(java.lang.String geopoliticalView) |
GeometrySearchQueryBuilder |
withIdxSet(java.lang.String idxSet)
The "idxSet" parameter allows for fine tuning L2 by specifying which indexes to utilize for the search.
|
GeometrySearchQueryBuilder |
withLanguage(java.lang.String language)
Language in which search results should be returned.
|
GeometrySearchQueryBuilder |
withLimit(java.lang.Integer limit)
Maximum number of responses that will be returned.
|
GeometrySearchQueryBuilder |
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 GeometrySearchQueryBuilder(java.lang.String term, java.util.List<Geometry> geometries)
public GeometrySearchQueryBuilder withLanguage(java.lang.String language)
IGeometrySearchQuery
withLanguage
in interface IGeometrySearchQuery
language
- language in which search results should be returned.public GeometrySearchQueryBuilder withLimit(java.lang.Integer limit)
IGeometrySearchQuery
withLimit
in interface IGeometrySearchQuery
limit
- maximum number of responses that will be returned.public GeometrySearchQueryBuilder withTypeAhead(java.lang.Boolean typeAhead)
IGeometrySearchQuery
withTypeAhead
in interface IGeometrySearchQuery
typeAhead
- predictive mode.public GeometrySearchQueryBuilder withExtendedPostalCodesFor(java.lang.String extendedPostalCodesFor)
IGeometrySearchQuery
withExtendedPostalCodesFor
in interface IGeometrySearchQuery
extendedPostalCodesFor
- indexes for which extended postal codes should be included in the results.public GeometrySearchQueryBuilder withIdxSet(java.lang.String idxSet)
IGeometrySearchQuery
withIdxSet
in interface IGeometrySearchQuery
idxSet
- indexes to utilize for the search.public GeometrySearchQueryBuilder withGeopoliticalView(java.lang.String geopoliticalView)
public static GeometrySearchQueryBuilder create(java.lang.String term, java.util.List<Geometry> geometries)
GeometrySearchQuery
, once constructed, the user cannot change the field valuesGeometrySearchQuery
to be used for further processingpublic GeometrySearchQuery build()
GeometrySearchQuery