The distance is calculated using the height, weight, age and gender information that you provided to us when you set up your Withings account, as well as the number of steps that you have taken.
If the distance displayed in the app doesn't seem accurate, please check that the height you've entered in your Profile is correct.