(a) The driver of any vehicle or pedestrian approaching a railroad or rail transit grade crossing shall stop not less than 15 feet from the nearest rail and shall not proceed until he or she can do so safely, whenever the following conditions exist:
(1) A clearly visible electric or mechanical signal device or a flagman gives warning of the approach or passage of a train, car, or on-track equipment.
(2) An approaching train, car, or on-track equipment is plainly visible or is emitting an audible signal and, by reason of its speed or nearness, is an immediate hazard.
(b) No driver or pedestrian shall proceed through, around, or under any railroad or rail transit crossing gate while the gate is closed.
(c) Whenever a railroad or rail transit crossing is equipped with an automated enforcement system, a notice of a violation of this section is subject to the procedures provided in Section 40518.
(d) For purposes of this section, “on-track equipment” means any locomotive or any other car, rolling stock, equipment, or other device that, alone or coupled to others, is operated on stationary rails.
(Amended by Stats. 2017, Ch. 110, Sec. 1. (AB 695) Effective January 1, 2018.)