Skip to content

GetDevicePositionHistory

Source: src/AWS/Location/GetDevicePositionHistory.ts

Retrieves the position history of a device from the tracker (positions are retained for 30 days).

Runtime binding for the GetDevicePositionHistory operation (IAM action geo:GetDevicePositionHistory), scoped to one Tracker. Provide the implementation with Effect.provide(AWS.Location.GetDevicePositionHistoryHttp).

const getHistory = yield* Location.GetDevicePositionHistory(tracker);
const history = yield* getHistory({ DeviceId: "vehicle-1" });
// history.DevicePositions → chronological position samples