Calculate the average distance statistic based on our actual location.
Merge branch 'fix-nodestats-dist' of github.com:bertm/fred-staging into next