HAVERSINE
Calculates Haversine distance between coordinates
HAVERSINE(lat1
,lon1
, lat2
, lon2
, miles
)
Calculates the haversine (or great circle) distance between a pair of coordinates.
Arguments
Argument | Description |
| Latitude of first coordinate |
| Longitude of first coordinate |
| Latitude of second coordinate |
| Longitude of second coordinate |
| True for an output in miles (default), false for an output in kilometers |
Output
The haversine distance between a pair of coordinates.
Example
Last updated