Skip to content

Tracker

Source: src/AWS/Location/Tracker.ts

An Amazon Location Service tracker. A tracker records device positions and evaluates them against linked geofence collections. The KMS key is immutable; position filtering, EventBridge publishing, and the description can be updated in place.

Basic Tracker

import * as Location from "alchemy/AWS/Location";
const tracker = yield* Location.Tracker("Devices", {});

Distance-Filtered Tracker with EventBridge

const tracker = yield* Location.Tracker("Fleet", {
positionFiltering: "DistanceBased",
eventBridgeEnabled: true,
});