Class: NearestLodBoundarySearchSession
A nearest search session for boundaries (airspaces) in the form of LodBoundary objects.
Constructors
constructor
• new NearestLodBoundarySearchSession(cache
, session
, frameBudget
): NearestLodBoundarySearchSession
Constructor.
Parameters
Name | Type | Description |
---|---|---|
cache | LodBoundaryCache | The boundary cache this search session uses. |
session | NearestBoundarySearchSession | The nearest boundary facility search session this search session uses. |
frameBudget | number | The maximum amount of time allotted per frame to retrieve and process LodBoundary objects, in milliseconds. |
Returns
NearestLodBoundarySearchSession
Defined in
src/sdk/navigation/NearestLodBoundarySearchSession.ts:28
Properties
frameBudget
• Readonly
frameBudget: number
The maximum amount of time allotted per frame to retrieve and process LodBoundary objects, in milliseconds.
Defined in
src/sdk/navigation/NearestLodBoundarySearchSession.ts:31
Methods
searchNearest
▸ searchNearest(lat
, lon
, radius
, maxItems
): Promise
<NearestLodBoundarySearchResults
>
Searches for the nearest boundaries around a specified location.
Parameters
Name | Type | Description |
---|---|---|
lat | number | The latitude of the search center, in degrees. |
lon | number | The longitude of the search center, in degrees. |
radius | number | The radius of the search, in meters. |
maxItems | number | The maximum number of items for which to search. |
Returns
Promise
<NearestLodBoundarySearchResults
>
The nearest search results.
Defined in
src/sdk/navigation/NearestLodBoundarySearchSession.ts:43
setFilter
▸ setFilter(classMask
): void
Sets this session's boundary class filter. The new filter takes effect with the next search executed in this session.
Parameters
Name | Type | Description |
---|---|---|
classMask | number | A bitmask defining the boundary classes to include in the search (0 : exclude, 1 : include). The bit index for each boundary class is equal to the value of the corresponding BoundaryType enum. |
Returns
void
Defined in
src/sdk/navigation/NearestLodBoundarySearchSession.ts:63