- Source:
Methods
-
<static> calculateDistance(lat1, lon1, lat2, lon2) → {number}
-
Calculates the distance between the two points using the haversine method.
Parameters:
Name Type Description lat1
number The latitude of the first point. lon1
number The longtitude of the first point. lat2
number The latitude of the first point. lon2
number 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: