movingpandas.TrajectoryCollection.add_distance#
- TrajectoryCollection.add_distance(overwrite=False, name='distance', units=None, n_threads=1)#
Add distance column and values to the trajectories.
- Parameters:
overwrite (bool) – Whether to overwrite existing distance values (default: False)
name (str) – Name of the distance column (default: “distance”)
units (str) – Units in which to calculate distance values (default: CRS units) For more info, check the list of supported units at https://movingpandas.org/units
n_threads (int) – Number of threads to use for computation (default: 1)