Skip to content

VerifyDevicePosition

Source: src/AWS/Location/VerifyDevicePosition.ts

Verifies a reported device position against cellular, Wi-Fi, and IP signals to detect spoofed GPS locations.

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

const verifyPosition = yield* Location.VerifyDevicePosition(tracker);
const verdict = yield* verifyPosition({
DeviceState: {
DeviceId: "vehicle-1",
SampleTime: new Date(),
Position: [-122.3493, 47.6205],
WiFiAccessPoints: [{ MacAddress: "A0:EC:F9:1E:32:C1", Rss: -66 }],
},
});
// verdict.InferredState → inferred position + accuracy