I’m trying to detect incidents in our location tracking data where users are accelerating and braking quickly. I’m using the GeoAnalytics tool “Detect Incidets”. (I’m following the example described in the workflow ‘Detecting Incidents Using Track Data’ on https://earlyadopter.esri.com .)
When I copy the expression to signify the start of an incident I get a Syntax Error. Here is the expression that I copy in the expression field:
var acceleration = abs(($track.field["speed"].history(-2)[0] - $feature.speed)/(DateDiff($track.field["location_timestamp"].history(-2)[0], $feature.location_timestamp, "seconds")))
acceleration >= 2 && $feature.activity == 5
My colleagues and I couldn’t find an error in the syntax. Do we overlook something in the expression or could there be another reason?
Thanks
Sonja