At the end of simulation you can add the travelled distance to whatever statistic or output you want. There is a section on the official documentation Transporter API that is specifically called Distance
. You can find there functions to calculate distance.