Skip to content

BatchGetDevicePosition

Source: src/AWS/Location/BatchGetDevicePosition.ts

Retrieves the latest position for up to 10 devices from the tracker in one call.

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

const batchGet = yield* Location.BatchGetDevicePosition(tracker);
const result = yield* batchGet({ DeviceIds: ["vehicle-1", "vehicle-2"] });
// result.DevicePositions → found positions, result.Errors → per-device failures