Cal. Gov't Code § 537
From the county seat of San Bernardino County to Sacramento it is five hundred and eight (508) miles.