When a train is approaching, all vehicles are required to stop within how many feet of the nearest rail of a railroad crossing?

At a railroad crossing, you must stop within 15 to 50 feet if there is a posted stop sign, the electric signal is flashing, the crossing gate is lowered, a flagger issues a signal to stop, or a train is approaching and/or gives a warning.