Why bother? Put the charge station in the bus stop instead. They have a longer runtime to charge and the bus does not have to be slow. Potentially easier to maintain too.

Or even do light rail and electrify the tracks with a solar network wherever you want.