Penal Code § 782
CHAPTER 1. Of the Local Jurisdiction of Public Offenses
When a public offense is committed on the boundary of two or more jurisdictional territories, or within 500 yards thereof, the jurisdiction of such offense is in any competent court within either jurisdictional territory.