Earth radius in metres (WGS-84 mean) — the single source of truth for every
spherical-earth computation that works in metres.
Exported since CAPACITÉS S10 because filter/panel/proximity/proximity-circle.ts held
its own 6371008.8 (the IUGG mean radius). The drawn proximity circle and the predicate
that decides which features fall inside it were therefore built on two different earths.
The gap is tiny — 1,4 ppm, about 1,4 cm on a 10 km radius — but it is two sources of
truth for one physical constant, which is the failure mode the S10 guards target.
⚠️ general-utils.getDistance keeps its own R = 6371kilometres. That is a
deliberate, documented divergence (it is published as GeoLeaf.Utils.getDistance) — see
the warning on that function. Do not unify it here: the units differ, not just the value.
Earth radius in metres (WGS-84 mean) — the single source of truth for every spherical-earth computation that works in metres.
Exported since CAPACITÉS S10 because
filter/panel/proximity/proximity-circle.tsheld its own6371008.8(the IUGG mean radius). The drawn proximity circle and the predicate that decides which features fall inside it were therefore built on two different earths. The gap is tiny — 1,4 ppm, about 1,4 cm on a 10 km radius — but it is two sources of truth for one physical constant, which is the failure mode the S10 guards target.⚠️
general-utils.getDistancekeeps its ownR = 6371kilometres. That is a deliberate, documented divergence (it is published asGeoLeaf.Utils.getDistance) — see the warning on that function. Do not unify it here: the units differ, not just the value.