Calculate the distance between consecutive points
getDist.Rd
Wrapper for raster::pointDistance that only requires input of a vector of longitudes and a vector of latitudes. Default calculation assumes data are in decimal degrees. If not, then set lonlat = FALSE. Compatible with tidyverse.