OSMscale (version 0.5.1)

maxEarthDist: maximum distance between set of points

Description

Maximum great-circle distance between points at lat-long coordinates. This is not computationally efficient. For large datasets, consider pages like http://stackoverflow.com/a/16870359.

Usage

maxEarthDist(lat, long, data, r = 6371)

Value

Single number

Arguments

lat, long, data

Coordinates for earthDist

r

radius for earthDist

Author

Berry Boessenkool, berry-b@gmx.de, Jan 2017

See Also

earthDist

Examples

Run this code

d <- read.table(header=TRUE, text="
    x     y
9.19 45.73
6.55 58.13
7.71 71.44")

plot(d, asp=1, pch=as.character(1:3))
earthDist(y,x,d, i=2)
earthDist(y,x,d, i=3)

maxEarthDist(y,x,d)

Run the code above in your browser using DataCamp Workspace