-
Notifications
You must be signed in to change notification settings - Fork 606
Description
When I set a LineString geofence with cross activity and with where clause
SETHOOK geofence-123-target-456 http://192.168.1.160:8000/event-alert INTERSECTS entities WHERE entity_id == vehicle-001' WHERE entity_type == 'vehicle' DETECT cross OBJECT '{"type":"LineString","coordinates":[[77.60984772494697,12.99533665858496],[77.61140384154032,12.962511805108619]]}
and then I make movement in that same entity
SET entities vehicle-001 FIELD entity_id vehicle-001 FIELD entity_type vehicle POINT 12.9750 77.6000
and to cross
SET entities vehicle-001 FIELD entity_id vehicle-001 FIELD entity_type vehicle POINT 12.9750 77.6900
for this event it sends an alert to the endpoint URL
but for another entity vehicle-002
SET entities vehicle-002 FIELD entity_id vehicle-002 FIELD entity_type vehicle POINT 12.9750 77.6000
and to cross
SET entities vehicle-002 FIELD entity_id vehicle-002 FIELD entity_type vehicle POINT 12.9750 77.6900
it should not send an alert, but its sending it.
Looks like for cross it ignores the where clause