Interface: NearestSearchSession<TAdded, TRemoved>
A session for searching for nearest facilities.
Type parameters
Name |
---|
TAdded |
TRemoved |
Implemented by
Methods
searchNearest
▸ searchNearest(lat
, lon
, radius
, maxItems
): Promise
<NearestSearchResults
<TAdded
, TRemoved
>>
Searches for nearest facilities from the specified point.
Parameters
Name | Type | Description |
---|---|---|
lat | number | The latitude, in degrees. |
lon | number | The longitude, in degrees. |
radius | number | The radius around the point to search, in meters. |
maxItems | number | The maximum number of items. |
Returns
Promise
<NearestSearchResults
<TAdded
, TRemoved
>>
The nearest search results.
Defined in
src/sdk/navigation/FacilityLoader.ts:713