calcVinSph: Calculate Geodesic Distance - Vincenty Sphere Method

Description Usage Arguments Examples

View source: R/RcppExports.R

Description

This function calculates geodesic distance using the Vincenty sphere method.

Usage

1
calcVinSph(latLongs, r = 6378137)

Arguments

latLongs

Two column matrix of latitudes/longitudes

r

Earth radius. Default is WGS-84 radius

Examples

1
2
3
4
5
6
# two-column matrix with latitude/longitude, in degrees
latLong = cbind(runif(n = 5, min = 0, max = 90),
                runif(n = 5, min = 0, max = 180))

# Vincenty Sphere  distance formula
distMat = calcVinSph(latLongs = latLong)

MGDrivE documentation built on Oct. 23, 2020, 7:28 p.m.