There are databases of safety/speed cameras. On most Garmin GPS units, you can buy a subscription to the location of safety cameras. When approaching a fixed position safety camera, the nav system gives you an audible alert and visual indication of speed.
To implement this feature you need the ability to integrate safety camera database into the nav system. A Garmin subscription was $25/year but was discontinued in 2020.