When a railroad company changes, alters, or repairs a highway crossing, it shall upon completion of the work leave it free from obstructions to travel and in good condition. If travel will be obstructed while any alterations or repairs are being made, the railroad company shall provide safe and convenient temporary ways for the public to avoid or pass such obstructions.
Iowa Code § 327G.21