https://en.wikipedia.org/wiki/District_heating#Heat_accumula...
When powered by heat pumps, I imagine this could be used for cooling in the summer as well.