movingpandas.Trajectory.get_direction#

Trajectory.get_direction()#

Return the direction of the trajectory.

The direction is calculated between the trajectory’s start and end location. Direction values are in degrees, starting North turning clockwise.

Returns:

Direction of the trajectory in degrees

Return type:

float