I think you're describing what is known as "district energy" systems.