Because seismic waves are slower than internet signals, it’s possible to send an alert after an earthquake starts, but before the shaking reaches you. A few seconds’ warning is enough to pull over to the side of the road, climb down from a ladder, step away from a high shelf or window, put down a scalpel, etc.
Mexico and Japan both have systems like this, and Los Angeles has launched a pilot program with apps for both Android and iOS.