When a court determines that it does not have jurisdiction because the offense charged was committed in another county of this state, the defendant shall be committed to custody or admitted to bail for a reasonable time to await a warrant for his or her arrest from the proper county. The clerk shall notify the prosecuting attorney of the proper county of the location of the defendant. If the defendant is not arrested on a warrant from the proper county within the time set by the court, he or she shall be discharged. If the defendant has been admitted to bail, the court shall order the bond canceled and any deposit of money or bonds returned.
Fla. Stat. § 918.04