Class: GarminFacilityWaypointCache
A Garmin-specific implementation of FacilityWaypointCache.
Implements
FacilityWaypointCache
Properties
size
• Readonly
size: number
The maximum size of this cache.
Defined in
src/garminsdk/navigation/GarminFacilityWaypointCache.ts:18
Methods
get
▸ get<T
>(facility
): FacilityWaypoint
<T
>
Gets a waypoint from the cache for a specific facility. If one does not exist, a new waypoint will be created.
Type parameters
Name | Type |
---|---|
T | extends Facility |
Parameters
Name | Type | Description |
---|---|---|
facility | Facility | The facility for which to get a waypoint. |
Returns
FacilityWaypoint
<T
>
A waypoint.
Implementation of
FacilityWaypointCache.get
Defined in
src/garminsdk/navigation/GarminFacilityWaypointCache.ts:26
getCache
▸ getCache(bus
): GarminFacilityWaypointCache
Gets a FacilityWaypointCache instance.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
Returns
A FacilityWaypointCache instance.
Defined in
src/garminsdk/navigation/GarminFacilityWaypointCache.ts:58