Skip to main content

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

NameType
Textends Facility

Parameters

NameTypeDescription
facilityFacilityThe 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

NameTypeDescription
busEventBusThe event bus.

Returns

GarminFacilityWaypointCache

A FacilityWaypointCache instance.

Defined in

src/garminsdk/navigation/GarminFacilityWaypointCache.ts:58