Calculate distances in metres and bearing between successive points along track.
calc_distbearing(lonlat)
lonlat | a 2-column matrix or dataframe with longitude and latitude of each point |
---|
A dataframe with columns
lon
the longitude of the randomized track
lat
the latitude of the randomized track
This is an internal function used by randomize_track
.