dt.haversine: Calculates the separation distance between two geopoints...

Description Usage Arguments Value Examples

View source: R/dt.haversine.R

Description

Calculates the separation distance between two geopoints considering the earth curvature.

Usage

1
dt.haversine(lat_from, lon_from, lat_to, lon_to, r = 6378137)

Arguments

lat_from

Origin lat

lon_from

Origin lng

lat_to

final lat

lon_to

final lng

r

Default for haversine distance

Value

Separation in km

Examples

1
dt.haversine(19.2313,-95.12123,18.312312,-96.23123)

FrankBaut/geospatial documentation built on Nov. 27, 2020, 12:11 p.m.