GetDevicePosition
Source:
src/AWS/Location/GetDevicePosition.ts
Retrieves a device’s most recent position reported to the tracker.
Runtime binding for the GetDevicePosition operation (IAM action
geo:GetDevicePosition), scoped to one Tracker. Provide the implementation with
Effect.provide(AWS.Location.GetDevicePositionHttp).
Reading Device Positions
Section titled “Reading Device Positions”const getPosition = yield* Location.GetDevicePosition(tracker);
const latest = yield* getPosition({ DeviceId: "vehicle-1" });// latest.Position → [longitude, latitude]