See this story about the first step toward making our roads and rails safer: Railroad official asks digital map makers to mark crossings.
The next step would be digitizing the locations of trains on the tracks and showing them in real time. I suppose there might be some daredevil who might try to game the system, but then Darwin's law would enter into the equation.
Steve Myers shared the link.