The last streetcar (a trolley that ran on tracks in the street) in Brooklyn, where I lived, was on Church Avenue, and quit in 1956. The "car barn" where the trolleys were serviced was turned into an indoor "farmers market." For several years, Brooklyn had electric buses--regular buses that were powered by overhead electrical lines.
Many of the streetcar routes in Pittsburgh were operational well into the 70s. Some still are. All of ours were powered the same way.