Cal. Gov't Code § 534
From the county seat of Riverside County to Sacramento it is five hundred and twelve (512) miles.