movingpandas.Trajectory.get_sampling_interval#

Trajectory.get_sampling_interval()#

Return the sampling interval of the trajectory.

The sampling interval is computed as the median time difference between consecutive rows in the trajectory’s DataFrame.

Returns:

Sampling interval

Return type:

datetime.timedelta