geotools: Get distance between two position with coordinate in...

Description Usage Arguments Author(s) Examples

Description

distKm() returns distance in kilometer with latitude and longitude in degree

distKmRad() returns distance in kilometer with latitude and longitude in radian

degToRad() conversion degree to radian

Usage

1
2
3
4
distKm(lat0,lon0,lat1,lon1)

distKmRad(lat0,lon0,lat1,lon1)
degToRad(val)

Arguments

lat0,lon0

latitude, longitude of first point

lat1,lon1

latitude, longitude of second point

val

Value, in degree.

Author(s)

Antoine Lucas

Examples

1
degToRad(180)

Example output

[1] 3.141593

geotools documentation built on May 2, 2019, 5:07 a.m.

Related to geotools in geotools...