It's worth weighing. SDG&E's earthquake preparedness checklist begins with installing earthquake shut-off valves (SDG&E), and the Legislature found that fire from earthquake damage is a serious threat to life and property (H&S Code §19180). A valve that closes on its own helps most when nobody is home to reach the meter.
The state lets cities and counties require these devices by ordinance. We found no City of San Diego ordinance that does, and the City's local additions to the plumbing code contain no such requirement (San Diego Municipal Code). If you live in another city or an unincorporated area, ask that building department.
Two rules apply wherever you are. Any new seismic gas shutoff device sold in California must be certified by the State Architect before sale, and the Division of the State Architect says installation falls under local building departments (H&S §19203; DSA). The device goes on customer-owned piping downstream of the meter, never on the utility's side.