Increase package grouping fuzziness by rounding to 4 decimal places

master
Skylar Ittner 4 years ago
parent 78f9c5f31f
commit 5306f25a97

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

Loading…
Cancel
Save