Add a method to calculate trip distance.