Skip to main content

Class: GarminFacilityWaypointCache

Defined in: src/garminsdk/navigation/GarminFacilityWaypointCache.ts:8

A Garmin-specific implementation of FacilityWaypointCache.

Implements​

Properties​

size​

readonly size: number

Defined in: src/garminsdk/navigation/GarminFacilityWaypointCache.ts:18

The maximum size of this cache.

Methods​

get()​

get<T>(facility): FacilityWaypoint<T>

Defined in: src/garminsdk/navigation/GarminFacilityWaypointCache.ts:26

Gets a waypoint from the cache for a specific facility. If one does not exist, a new waypoint will be created.

Type Parameters​

Type Parameter
T extends Facility

Parameters​

ParameterTypeDescription
facilityFacilityThe facility for which to get a waypoint.

Returns​

FacilityWaypoint<T>

A waypoint.

Implementation of​

FacilityWaypointCache.get


getCache()​

static getCache(bus): GarminFacilityWaypointCache

Defined in: src/garminsdk/navigation/GarminFacilityWaypointCache.ts:58

Gets a GarminFacilityWaypointCache instance.

Parameters​

ParameterTypeDescription
busEventBusThe event bus.

Returns​

GarminFacilityWaypointCache

A GarminFacilityWaypointCache instance.