Methods
(inner) coordDist(lat1, lon1, lat2, lon2)
Function to calculate the distance in miles between two coordinate locations.
Parameters:
Name | Type | Description |
---|---|---|
lat1 |
number |
Latitude of first location |
lon1 |
number |
Longitude of first location |
lat2 |
number |
Latitude of second location |
lon2 |
number |
Longitude of second location |
- Source: