Calculate distances in metres and bearing between successive points along track.

calc_distbearing(lonlat)

Arguments

lonlat

a 2-column matrix or dataframe with longitude and latitude of each point

Value

A dataframe with columns

lon

the longitude of the randomized track

lat

the latitude of the randomized track

Details

This is an internal function used by randomize_track.