In areas where hot springs or geothermal reservoirs are near the Earth's surface, hot water can be piped in directly to heat homes or office buildings. Geothermal water is pumped through a heat exchanger, which transfers the heat from the water into the building's heating system. The used water is injected back down a well into the reservoir to be reheated and used again.