From gas to geothermal energy