Take average distance - instead of sum - for grouped gites (refs #5075)