From 5306f25a97f3cfe4225c92cf3307b24abe079efa Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sun, 29 Dec 2019 16:57:10 -0700 Subject: [PATCH] Increase package grouping fuzziness by rounding to 4 decimal places --- www/assets/js/packages.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/assets/js/packages.js b/www/assets/js/packages.js index 32a836a..36bd9ce 100644 --- a/www/assets/js/packages.js +++ b/www/assets/js/packages.js @@ -91,6 +91,11 @@ function addPackage(address, latitude, longitude, type, callback, deadline) { deadline = false; } + // Extra precision makes the map stupider, + // and doesn't really increase accuracy since four decimal places ~= 11m + latitude = latitude.toFixed(4); + longitude = longitude.toFixed(4); + var packageID = uuidv4(); var coordsID = "";