Lockport was one of the few cities in the US which used its streetcar system as a freight S&T network back in the days of the electric railways. The "International Ry" shared the line from North Tonawanda with the Erie and had a loop, passenger terminal and freight yard around Main and Hawley, then an interurban line from that point via Hawley, Grand, Gooding to Lower Town at Mill and so to Olcott Beach. It also owned the freight loop from a junction at Hinman, SW of the terminal, looping around the west of town to a freight yard and a spur to the Olcott interurban. This became the Erie's access to Lower Town.
There was a freight spur from Hawley, along Caledonian to an interchange with a NYC spur from its station at West Lockport. Also, freight was worked along Main to spurs off Locust and East Ave, and there was another yard off Mill, NW of the NYC main station. There was a connection with the NYC Lower Town branch near Olcott, and I think there was another one from the Olcott Beach interurban.
The streetcar line along East Ave also hosted the "Buffalo, Rockport & Rochester" interurban which joined at Beverly.
I'm not sure how much interchange there was between the NYC and IRY, but I think there must have been at least some along Van Buren and eastwards.
I'm drawing a map of all this which I hope will be in the next edition of SPV's "Northeast" railroad atlas.