powered by
Calculates the geodesic distance between two points specified by latitude/longitude using Vincenty inverse formula for ellipsoids
gcd_vif(long1, lat1, long2, lat2)
- Longitudinal value of first point in decimal degrees
- Latitudinal value of first point in decimal degrees
- Longitudinal value of second point in decimal degrees
- Latitudinal value of second point in decimal degrees
Returns the distance between two points on the Earth in kilometers
[1] Adapted from http://www.r-bloggers.com/great-circle-distance-calculations-in-r/
long1<-22 lat1<-44 long2<-52 lat2<-51 gcd_vif(long1,lat1,long2,lat2)
Run the code above in your browser using DataLab