SearchOptions
Defines the parameters of a Search.
Important: This is a Public Preview API. It may be changed or removed at any time.
Constructors
Types
Properties
The maximum number of search results that will be returned. Defaults to DEFAULT_LIMIT.
The maximum detour duration (for a passenger car) limits the search area. The detour duration is the value added to the estimated time of arrival (to the final destination) after a point of interest is added to the route. Search results that add more than this value are filtered out. The maximum accepted value is 3600 seconds (which equals one hour). If a value greater than the maximum is provided, then the maximum value is used. Default duration is set to MAX_DETOUR_DURATION_UPPER_LIMIT.
The geographic filter for search, all search results returned are confined in the specified geography. Max number of geometries is 50. Three types of geometries can be passed as searchAreas: CircleGeometry, RectangleGeometry and PolygonGeometry When a single CircleGeometry is set the CircleGeometry center overrides geoBias.
A set of SearchResultType which should be used for the search. An empty set implies search can return results of any type. Other filters can influence the selection of searchResultTypes. For example when a category filter is set, result types are limited to SearchResultType.Poi.
Defines how the results will be sorted. Default value is SortOrder.ByDetourTime.