- Source:
Methods
-
<static> calculateDistance(lat1, lon1, lat2, lon2) → {number}
-
Calculates the distance between the two points using the haversine method.
Parameters:
Name Type Description lat1number The latitude of the first point. lon1number The longtitude of the first point. lat2number The latitude of the first point. lon2number The longtitude of the first point. - Source:
Returns:
The distance in miles between the two points.- Type
- number
-
<static> calculateMidpoint()
-
Calcuates the midpoint between the two points passed in.
- Source: