When a complaint is filed with a magistrate of the commission of a misdemeanor or infraction triable in another county of the state than that in which the magistrate sits, but showing that the defendant is in the county where the complaint is filed, the officer must, upon being required by the defendant, take the defendant before a magistrate of the county in which the warrant was issued, who must admit the defendant to bail in the amount specified in the endorsement referred to in Section 815a, and immediately transmit the warrant, complaint, and undertaking to the clerk of the court in which the defendant is required to appear.
Ca. Pen. Code § 829