Computes the cumulative distance between consecutive points in a given set of coordinates. It sums the Euclidean distances between each pair of adjacent points, providing the total distance traveled along the path defined by the points.
distanceTraveled(data)A numeric value representing the total distance traveled through the points.
An object of class `trajectory` containing a collection of points with coordinates.