The digital twin to help the ecological transition of local authorities