using distance to get dimensions in meters