Compute distance between two points (one to one) and return single value.

dist_1to1(xlon, xlat, ylon, ylat, dist_function = "Haversine")

Arguments

xlon

Longitude for starting coordinate pair

xlat

Latitude for starting coordinate pair

ylon

Longitude for ending coordinate pair

ylat

Latitude for ending coordinate pair

dist_function

String name of distance function: Haversine, Vincenty

Value

Distance in meters