The backend platform doesn't seem to have a standard data type for distance (but can track both time and average speed, which, if the other app recorded them, presumably the app, or another front-end for the Fit backend, could surface as distance.) [1]
[1] https://developers.google.com/fit/android/data-types or https://developers.google.com/fit/rest/v1/data-types