Divide the TOTAL distance traveled by the TOTAL time. You may need to find
the straight line distance between two points. If so, use this formula:
d = √(x2-x1)²+(y2-y1)²
to find the straight line distance between the two points (x1,y1) and (x2,y2).
Edwin