Skip to content

BatchEvaluateGeofences

Source: src/AWS/Location/BatchEvaluateGeofences.ts

Evaluates device positions against the collection’s geofences, emitting ENTER/EXIT events to EventBridge for linked trackers.

Runtime binding for the BatchEvaluateGeofences operation (IAM action geo:BatchEvaluateGeofences), scoped to one GeofenceCollection. Provide the implementation with Effect.provide(AWS.Location.BatchEvaluateGeofencesHttp).

const evaluate = yield* Location.BatchEvaluateGeofences(collection);
yield* evaluate({
DevicePositionUpdates: [
{
DeviceId: "vehicle-1",
Position: [-122.3493, 47.6205],
SampleTime: new Date(),
},
],
});