Distance to nearest speed camera

Okay, I’ve found a solution that works as I expect via triggers.

1 Like

I hope you share your solution.

Next release will show distance to closest speed camera that is moving closer.

2 Likes

Ok I’ll try to explain how I did it.

My goal:
Make a Text Gauge appear with the distance to the Speed Cam when you’re less than 500 meters away and getting closer. This Text Gauge will of course be designed to attract attention: white writing on a red background, flashing rapidly and close to the vehicle speed indication.
This Text Gauge must, of course, be invisible if you’re more than 500 m from a Speed Cam, or if you’re less than 500 m but moving away from it.

How I did it:
I used a variable (here Dummy 34) to record the distance to the Speed Cam.

I created 3 Actions:

  • One to show the Text Gauge

  • One to hide the Text Gauge

  • One to record the distance to the Speed Cam (ID430) in the Dummy 34 variable.

I created 2 Triggers (with a Cooldown of 1 or 2 seconds):

  • one that triggers when I get closer to the Speed Cam

  • One that triggers when I’m more than 500m away or when I move away from the Speed Cam

I hope the rest is clear enough to understand.

Understood. Great job: thank you.

@Henri.be I have tested your solution and it works as expected.
I will compare the results with those of the new version when available.

1 Like