mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
Add the changelog fragment and document the shared distance contract
This commit is contained in:
1 parent
64d7ed3c61
commit
eb10f7ab0c
2 files changed
+19
-7
No files matched your search
@@ -0,0 +1,5 @@
|
||||
- The client's great-circle distances now come from one shared
|
||||
`src/geoDistance.js` (`greatCircleKm`/`greatCircleMeters`, `{lat, lon}`
|
||||
points). The Earth radius is standardized on 6371.0088 km, so distances shift
|
||||
by about 1.4 ppm and region areas by about 2.8 ppm, and missing or
|
||||
out-of-range points return `Infinity` (onionviolet, #287; Rajojha-1, #749).
|
||||
+14
-7
@@ -1,12 +1,19 @@
|
||||
# God's Eye View Current State
|
||||
|
||||
Shared distance checks use `geoDistance.js` with `{ lat, lon }` points and the
|
||||
IUGG mean spherical Earth radius. `greatCircleKm` is canonical;
|
||||
`greatCircleMeters` is its exact metre conversion. Missing, non-finite, and
|
||||
out-of-range points return `Infinity`, so threshold and nearest-item consumers
|
||||
exclude invalid positions. Older exported `haversineKm` entry points remain as
|
||||
compatibility wrappers only. Intentional local angular, projection, ellipsoidal
|
||||
prefilter, and small-viewport approximations remain separate.
|
||||
Shared distance checks use `src/geoDistance.js` with `{ lat, lon }` points and
|
||||
the IUGG mean spherical Earth radius, 6371.0088 km. `greatCircleKm` is
|
||||
canonical; `greatCircleMeters` is its exact metre conversion. Missing,
|
||||
non-finite, and out-of-range points (latitude outside ±90, longitude outside
|
||||
±180) return `Infinity`, so threshold and nearest-item consumers exclude invalid
|
||||
positions. Older exported `haversineKm` entry points remain as compatibility
|
||||
wrappers only. `src/data/approxDistance.js`, the equirectangular
|
||||
viewer-proximity approximation, is deliberately separate, as are intentional
|
||||
local angular, projection, ellipsoidal prefilter, and small-viewport
|
||||
approximations. Four great-circle copies remain for a follow-up:
|
||||
`src/data/adminBoundaries.js` and `src/tools/area.js` pass unwrapped longitudes
|
||||
across the antimeridian, so they cannot use the strict ±180 check as-is, and
|
||||
`src/sources/adsbRecords.js` and `server/providers/common/geo.js` keep their own
|
||||
implementations.
|
||||
|
||||
Vessel sources can report healthy empty coverage using a current, complete
|
||||
snapshot with zero raw rows, a healthy transport and a positive last-message
|
||||
|
||||
Reference in new issue
Block a user