5.2. cpforager.utils.spherical_heading

cpforager.utils.spherical_heading(lon_1, lat_1, lon_2, lat_2)

Compute the spherical heading in degrees between the north and the direction formed by the two positions (lon_1, lat_1) and (lon_2, lat_2).

Parameters:
  • lon_1 (float) – longitude in degrees of the first position.

  • lat_1 (float) – latitude in degrees of the first position.

  • lon_2 (float) – longitude in degrees of the second position.

  • lat_2 (float) – latitude in degrees of the second position.

Returns:

the spherical heading in degrees between the north and the direction formed by the two positions (lon_1, lat_1) and (lon_2, lat_2).

Return type:

float