[R] Calculating distance between longitude, latitude of 2 points

David Winsemius dwinsemius at comcast.net
Fri Nov 19 14:17:39 CET 2010


On Nov 19, 2010, at 4:50 AM, Lily_stats wrote:

>
> Hi all,
>
> I would like to know a way of calculating the distance between 2  
> points when
> I already have the longitude and latitude of the points.
>
> For example :
>
> Point 1 :  52° 9'54.00"N	  4°25'8.40"E
> Point 2 :  52°27'46.80"N	  4°33'18.00"E
>
> Distance between point 1 and point in km ....
>
> Is there any functions already available for this ?

Searching on:  distance points longitude latitude

gdist {Imap} Geodesic distance (great circle distance) between points
Ellipsoidal.Distance {GEOmap} Ellipsoidal Distance
deg.dist {fossil} Haversine Distance Formula
distaz {RSEIS} Distance and Azimuth from two points
distaz {GEOmap} Distance and Azimuth from two points (# one probably  
borrowed from the other)
AlongGreat {RFOC} Get Points Along Great Circle
distAB {clim.pact} Distance between two points on Earth
>
> Any help will be much appreciated!

Suggest you learn to search.

-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list