earthRadius top-level constant
Earth Radius used with the Harvesine formula and approximates using a spherical (non-ellipsoid) Earth.
Implementation
const earthRadius = 6371008.8;
Earth Radius used with the Harvesine formula and approximates using a spherical (non-ellipsoid) Earth.
const earthRadius = 6371008.8;