Rdocumentation
powered by
Learn R Programming
osmplotr (version 0.2.0)
haversand: haversand
Description
Returns the minimal Haversand distance between 2 ways, along with the element numbers in each way corresponding to that minimal distance
Usage
haversand(way1, way2)
Arguments
way1
A matrix or data frame of spatial coordinates
way2
A matrix or data frame of spatial coordinates
Value
Vector of 3 elements: numbers of elements in (way1, way2) corresponding to minimal distance, and the distance itself.