latlon2dist {synchrony}R Documentation

latlon2dist

Description

Calculate distance between a pair of coordinates

Usage

latlon2dist (coords)

Arguments

coords

4-element vector of coordinates with format: (lat1, lon1, lat2, lon2)

Value

Returns the great circle distance distance between the pair of coordinates

Author(s)

Tarik C. Gouhier (tarik.gouhier@gmail.com)

See Also

coord2dist

Examples

coords=c(32, -125, 43, -130)
# Compute great circle distance
latlon2dist(coords)

[Package synchrony version 0.3.8 Index]