The epicenter of the earthquake was 24 miles off the coast of Petrolia, California, which is about 250 miles north of San Francisco.