Avatar

Exception rule for non-speed rule based on posted road speed

0

 I'm looking to configure a custom rule for a client that triggers when they back up onto a road where the posted speed limit is greater than 45mph. I created a rule from the standard Backing Up When Leaving report, but am looking to add a condition that would cause it to trigger only on those roads where the posted speed is > 45mph. This is what I have created but I'm not sure it will work if it only has the SpeedLimit value and not the Speed.

 

And(
DistanceLongerThan[distance=1.0936132983377078yd](
And(
IsValueLessThan[value=0](
FilterStatusDataByDiagnostic[diagnostic=DiagnosticGearPositionId]
),
IsValueLessThan[distance=20yd](
TripDistance
)
)
),
IsValueMoreThan[value=45mph](
SpeedLimit
),
)

Ian

Please sign in to leave a comment.

1 comment

0
Avatar

Hi Ian,

Thank you for contacting Geotab Technical Support. Since the speed condition is missing, the rule will not work. If you add the speed condition to what you currently have, the rule will break only if the driver backs up a speed greater than 45 mph over the posted speed limit. A work around to having the speed condition, is setting up the rule to break at any speed lower than the posted speed limit. I attached a sample code to get you started below:

DistanceLongerThan[distance=1m](
And(
IsValueLessThan[value=72.42048km/h](
Speed,
SpeedLimitExcludingEstimates
),
And(
IsValueLessThan[value=0](
FilterStatusDataByDiagnostic[diagnostic=DiagnosticGearPositionId]
),
IsValueLessThan[distance=20m](
TripDistance
)
)
)
)

Should you have any further questions, feel free to reach out to our technical support team for assistance. Have a great rest of your day.  

Marsilino Bilatos 0 votes