Distance to the epicentre
How far an epicentre is from you, in which direction, and how many seconds the P and S waves took to reach you.
How it works
The distance is the great-circle distance from you to the epicentre; the hypocentral distance adds the depth. P waves travel at about 6.1 km/s through the crust and S waves at about 3.5 km/s: the gap between them (S − P) is how seismologists locate quakes.
Questions
Why did I feel two jolts?
The first is the faster P wave (a push), the second the slower and stronger S wave (side to side). The farther you are, the longer the gap between them.
Can I get a warning before the shaking?
Early warning systems (ShakeAlert in the US West Coast, Japan, Mexico) detect the P wave and send an alert before the S wave arrives. The farther from the epicentre, the more seconds of warning.