Innisfil, Ontario, decided to partially subsidize ride-hailing trips rather than pay for a public bus system.

It worked so well that now they have to raise fares and cap rides.

Read more about this:

When a Town Takes Uber Instead of Public Transit
The Innisfil experiment the town that replaced public transit with Uber