ComputeDistance: Compute the Distance Between Two Coordinates

Description Usage Arguments Details Examples

Description

This function computes the distance between two geographical coordinates. These locations must be in decimal degrees.

Usage

1
ComputeDistance(Lat1, Lat2, Lon1, Lon2)

Arguments

Lat1

the latitude of the first coordinate

Lat2

the latitude of the second coordinate

Lon1

the longitude of the first coordinate

Lon2

the longitude of the second coordinate

Details

Coordinates are given in decimal degrees (WGS 84)

Examples

1
2
# Calculate the distance between two coordinates
ComputeDistance(-12.19506,-12.19477,141.8946,141.8980) 

Example output

Loading required package: foreach
[1] 0.3709359

VTrack documentation built on May 2, 2019, 9:16 a.m.