I come from a city where public transport is unreliable, so everyone use private cars. Which are reliable until you hit traffic jam (always) or have to park them (usually the time to find a spot is a large percentage of the entire trip)
The city is a pretty big one: Rome, Italy.
The only real solution is ban private cars. I don't like it, but it's unfortunately like cancer: kill it before it kills you.
In many places, I think it will happen gradually by removing or charging more for street parking. Then driving yourself becomes an expensive hassle and automated ridesharing looks more and more attractive as the cost drops and convenience improves.
I imagine something like this will arrive more quickly, not stop 15 times on the way, and get people closer to their home/work.