spherical_distance_cpp_vec: Calculate (vectorized) distance using haversines formula

View source: R/RcppExports.R

spherical_distance_cpp_vecR Documentation

Calculate (vectorized) distance using haversines formula

Description

Calculate (vectorized) distance using haversines formula

Usage

spherical_distance_cpp_vec(lat1, long1, lat2, long2)

Arguments

lat1

latitude from the first location

long1

longitude from the first location

lat2

latitude from the second location

long2

longitude from the second location

Value

distance in metres between two locations


njtierney/maxcovr documentation built on Nov. 27, 2024, 7:51 a.m.