One of the stations in Barcelona's subway system is using regenerative braking for energy (similar to some electric vehicles) to not only power the trains themselves but also to supply power to local EV chargers in the nearby parking lot, the lights illuminating the station, and the escalators taking people to the platforms. 

I'm sure it's a bit of an investment to deploy the infrastructure with the inverters, converters, energy storage equipment, etc., but maybe a system worth looking into for all train stations around the world.