Description

Right Track calculation helper functions

Details

Methods


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

Description

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

Details