SearchOptions (API Reference)
Class SearchOptions
Encapsulates options that control the behavior of search and suggest operations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanIndicates if search along the route should produce well-distributed results.booleanAllows enabling high density encoding of relevant parameters.The preferred language of the result.The maximum number of items in the response. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
languageCode
The preferred language of the result. When unset or unsupported language is chosen, results will be returned in their local language.
-
maxItems
The maximum number of items in the response. It should be in the range [1, 100]. When not set, results will be limited to 20. For location search (reverse geocode) by default results limited to 1.
-
highDensityEncodingEnabled
public boolean highDensityEncodingEnabledAllows enabling high density encoding of relevant parameters. For now, it only affects input parameters of type
GeoCorridor. Only supported for search inSearchEngine, otherwise it is ignored. Note: This is a closed-alpha release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process. Only participants of the closed-alpha group can get access from HERE to use this feature, otherwise, aSearchError.FORBIDDENwill be propagated in callbacks. -
distributedResults
public boolean distributedResultsIndicates if search along the route should produce well-distributed results. It is only supported for:
searchByCategoryAPI withCategoryQuery.Area.corridorAreasetsearchByTextAPI withTextQuery.Area.corridorAreaset Otherwise, this value is ignored.
-
-
Constructor Details
-
SearchOptions
public SearchOptions()Creates an Options object. If no parameters are passed, uses default values (see fields description).
-
-
Method Details