Class: NearestRepoFacilitySearchSession<F>
A session for searching for nearest facilities that uses the facility repository.
Type parameters
Name | Type |
---|---|
F | extends RepoFacilityType |
Implements
NearestSearchSession
<string
,string
>
Constructors
constructor
• new NearestRepoFacilitySearchSession<F
>(repo
, sessionId
): NearestRepoFacilitySearchSession
<F
>
Creates an instance of a NearestUserSearchSession.
Type parameters
Name | Type |
---|---|
F | extends RepoFacilityType |
Parameters
Name | Type | Description |
---|---|---|
repo | FacilityRepository | The facility repository in which to search. |
sessionId | number | The ID of the session. |
Returns
NearestRepoFacilitySearchSession
<F
>
Defined in
src/sdk/navigation/FacilityLoader.ts:886
Methods
searchNearest
▸ searchNearest(lat
, lon
, radius
, maxItems
): Promise
<NearestSearchResults
<string
, string
>>
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
<string
, string
>>
The nearest search results.
Implementation of
NearestSearchSession.searchNearest
Defined in
src/sdk/navigation/FacilityLoader.ts:889
setUserFacilityFilter
▸ setUserFacilityFilter(filter?
): void
Sets the filter for this search session.
Parameters
Name | Type | Description |
---|---|---|
filter? | GeoKdTreeSearchFilter <F > | A function to filter the search results. |
Returns
void
Defined in
src/sdk/navigation/FacilityLoader.ts:924