@jdultra/ultra-globe / GeoUtils / haversineDistance
Function: haversineDistance()
haversineDistance(
lon1,lat1,lon2,lat2):number
Defined in: utils/GeoUtils.d.ts:22
Calculates the great-circle distance between two points using the Haversine formula.
Parameters
lon1
number
Longitude of the first point in degrees.
lat1
number
Latitude of the first point in degrees.
lon2
number
Longitude of the second point in degrees.
lat2
number
Latitude of the second point in degrees.
Returns
number
- Distance in kilometers.