dist_gc_vicenty: Calculate the Great-Circle distance between two points using...

View source: R/dist_great_circle.R

dist_gc_vicentyR Documentation

Calculate the Great-Circle distance between two points using the Vincenty inverse formula for ellipsoids (vicenty)

Description

The function calculates the Great-Circle distance between two points specified by radian latitude/longitude using the Vincenty inverse formula for ellipsoids (vicenty)

Usage

dist_gc_vicenty(long1, lat1, long2, lat2)

Arguments

long1

Point 1 longitude in radians

lat1

Point 1 latitude in radians

long2

Point 2 longitude in radians

lat2

Point 2 latitude in radians

Value

The distance between points 1 and 2 in meters

Author(s)

P. Savary

Examples

dist_gc_vicenty(long1 = -73.99420, lat1 = 40.75170,
            long2 = -87.63940, lat2 = 41.87440)

graph4lg documentation built on Feb. 16, 2023, 5:43 p.m.