TALLAHASSEE, Fla. (AP) — After a four-year battle in the Florida Legislature, lawmakers on Wednesday passed statewide regulations for ride-hailing companies like Uber and Lyft that would undo a patchwork of local rules across the state.

Lawmakers were quick to send the measure (HB 221) to Gov. Rick Scott, who has yet to take a definitive stand on the issue. If it is signed into law, Florida would create a single statewide set of rules on the ride-hailing industry.

Uber and Lyft currently have tens of thousands of drivers in Florida, and the proposed legislation would help them expand their app-based services throughout the state.

Lyft spokesman Chelsea Harrison said in a statement the company welcomes the bill's passage because it provides certainty for its customers.

With this bill, local ordinances targeting ridesharing services would be overturned on July 1. That includes local rules in the Florida Keys where Uber and Lyft can't operate.

"Florida's future is directly tied to its ability to encourage innovation, and ridesharing services represent a groundbreaking transportation option for Florida's residents and visitors," said Sen. Bill Galvano, a co-sponsor of the bill. "This legislation will boost economic opportunity for the thousands of ridesharing drivers in Florida, while prioritizing public safety."

Under the bill, drivers would have to undergo criminal background checks to weed out people with certain convictions, including sexual assault and drunken driving. The bill would also require drivers to carry a $1 million liability insurance policy.

Local governments could not slap new regulations on the companies, but they could impose airport pickup fees as long as cab drivers face the same fees.

Those fees are now up for negotiation. Uber spokesman Colin Tooze said the company will be talking to airport officials in the coming weeks to begin striking deals.