The calculated distance also for position reports on the ground;
the algorithm used is the one of distCosine
.
See also
Other analysis:
cumulative_time()
,
extract_segment()
,
filter_outlier()
,
smooth_positions()
Examples
if (FALSE) {
cumulative_distance(poss)
# calculate only the flown distance
# NOTE: there is a gap in FR24 data between last ground position (if any)
# and first in air one (typically at ~1500 ft).
# The following code would certainly work better
# would poss contain a position report for a very low altitude.
cumulative_distance(poss %>% filter(altitude > 0))
}