diff --git a/src/constants.js b/src/constants.js index 0d131fa..5e373a0 100644 --- a/src/constants.js +++ b/src/constants.js @@ -31,7 +31,10 @@ export const UPDATE_REPORTS_DISTANCE_THRESHOLD = 500; // in meters // Minimal number of downvotes needed for a report to be masked export const REPORT_DOWNVOTES_THRESHOLD = 1; -export const EARTH_RADIUS = 6378137; // in meters +// Earth radius as recommended by the International Union of Geodesy and +// Geophysics +// https://rosettacode.org/wiki/Haversine_formula +export const EARTH_RADIUS = 6371000; // in meters // Keep reports only in a given radius around map center. export const KEEP_REPORTS_METERS_AROUND = 10000; // in meters