Increase package grouping fuzziness by rounding to 4 decimal places

This commit is contained in:
Skylar Ittner 2019-12-29 16:57:10 -07:00
parent 78f9c5f31f
commit 5306f25a97

View File

@ -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 = "";