Electricity company Endesa supplies green electricity to the Spanish railway system until the end of the year.