GeoLeaf Core API - v3.0.0
    Preparing search index...

    Variable EARTH_RADIUS_MConst

    EARTH_RADIUS_M: 6371000 = 6_371_000

    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 = 6371 kilometres. 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.