On today's episode of "HNer's totally realistic and not deluded idea"...

https://en.wikipedia.org/wiki/List_of_trolleybus_systems_in_...

It already exists and works so, not that crazy

It's much more difficult when the ownership of the vehicles isn't centralized.