Any peace officer, as that term is defined in Chapter 4.5 (commencing with Section 830) of Title 3 of Part 2 of the Penal Code, may remove a vehicle from the right-of-way of a railroad, street railway, or light rail line located within the territorial limits in which the officer is empowered to act if the vehicle is parked or abandoned upon any track or within 712 feet of the nearest rail. The officer may also remove a vehicle that is parked beyond
712 feet of the nearest rail but within the right-of-way of a railroad, street railway, or light rail if signs are posted giving notice that vehicles may be removed.