They had that in my home town. Actually they still do. They call them street cars.
The St Charles line ran directly in front of my university and I rode them often to and from school. Probably been in the one in the photo many times. And these electric street cars were not new back in the 1950s. In fact they had been around NO for decades even then.
New Orleans was way ahead of the times. Not only did they have electric street cars back in the 1950s but also ELECTRIC busses. I often rode on them too. Like the street cars, they got the electricity from a pair of lines that ran overhead. The street cars used the metal tracks for the return circuit and you could see sparks if there were leaves on the tracks. But the electric busses needed twin overhead lines. One of the electric bus lines ran near my grandparent's home and I rode them often going to and from there. The line pictured below ran in front of my then future wife's house. Again the photo is from the 1950s.
A regular bus route is a great place for an electric vehicle back then. So I must wonder, if they had them and electric was so great, why didn't they completely take over? I suspect those electric busses are now all replaced with gas or diesel powered ones. If electric powered is so good, then WHY? A thinking man must wonder.
Maybe a wire could be installed above every road,then when your ev runs out of fuel you extend a pole with some sort of pick up on the end from your vehicle to make contact with the ovehead wire that then refuels your car,of course you'd another contact from the car to ground complete the circuit,maybe conductive rubber tyres would work for that.