Add trip distance method

Please review code for distance_method.