The ‘Riding sunbeams’ initiative in this country is about static solar power generation next to the railway. I must admit to being highly sceptical of this at first, as you need roughly 5 acres of solar panels to power one 4 car unit, and of course it doesn’t help much at night.
However, having looked into it a bit more it is quite clever, and particularly useful on D.C. electrified areas. Having a reasonably sized D.C. generation plant close to a reasonably sized D.C. power demand helps avoid all the costs that solar farms incur in connecting to the Grid, including dealing with phase imbalances etc. This makes medium scale local solar generation much cheaper than buying power from the grid. Ultimately it may only deliver a few % of the power draw, but every little helps.