A burning car on Long Island Rail Road tracks near the Farmingdale station delayed trains late Friday night and Saturday morning, officials said.

At 11:45 p.m., a woman turned her car onto the tracks, later telling police that she was following the audio instructions of her GPS device, Nassau County police said.

advertisement | advertise on newsday

The Honda Civic became stuck on the tracks, ran into the electrified third rail and caught fire, according to accounts from responding officials.

Both the driver and her passenger got out of the car without injuries.

After the third rail was shut off, it took the Farmingdale Fire Department about 15 minutes to extinguish the blaze and the car was removed at 12:27 a.m.

The accident and damage to the rails limited the Ronkonkoma line to just one track, causing delays of up to 45 minutes for trains into Saturday morning, an MTA spokeswoman said.