utils/calc

Right Track calculation helper functions

Source:

Methods

(inner) distance(lat1, lon1, lat2, lon2) → {number}

Source:

Calculate the (Great-Circle) Distance between two points

Parameters:
Name Type Description
lat1 number

Latitude of Point 1

lon1 number

Longitude of Point 1

lat2 number

Latitude of Point 2

lon2 number

Longitude of Point 2

Returns:

distance between points in miles

Type
number