I want to know the answer to the following question:
What mode of transportation took over from the canals?
All the background I'm provided with is that "Designed by electric power pioneer Frank J. Sprague, the trolley system opened its first line in 1888, and electric streetcar lines rapidly spread to other cities across the country.". Is that enough to answer the question?