Skip to main content

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

NameTypeDescription
latnumberThe latitude, in degrees.
lonnumberThe longitude, in degrees.
radiusnumberThe radius around the point to search, in meters.
maxItemsnumberThe maximum number of items.

Returns

Promise<NearestSearchResults<TAdded, TRemoved>>

The nearest search results.

Defined in

src/sdk/navigation/FacilityLoader.ts:713