latlond.hav: calculate the haversine distance between two geographic...

View source: R/latlond.hav.R

latlond.havR Documentation

calculate the haversine distance between two geographic coordiantes

Description

calculate the haversine distance between two geographic coordiantes

Usage

latlond.hav(lat1, lon1, lat2, lon2)

Arguments

lat1, lon1

start coordinates (can be vectors)

lat2, lon2

end coordinates (can be vectors)

Details

uses 6371 as the radius of the earth in kilometers.

Value

distance in kilometers

References

https://www.movable-type.co.uk/scripts/latlong.html

See Also

Other distance functions: torad()

Examples

latlond.hav(-6.72, 147, -4.67, -174.52)

williamcioffi/sattagutils documentation built on June 3, 2022, 10:21 a.m.