computeAdaptiveAccuracy static method
D+4: Speed-adaptive GPS accuracy threshold. Low speed → stricter (20m), high speed → more lenient (50m).
Implementation
static double computeAdaptiveAccuracy(double speedMps) {
final speedKmh = speedMps * 3.6;
if (speedKmh < 10) return 20.0;
if (speedKmh > 80) return 50.0;
// Linear interpolation: 20m at 10km/h → 50m at 80km/h
return 20.0 + (speedKmh - 10.0) / 70.0 * 30.0;
}