Increase package grouping fuzziness by rounding to 4 decimal places
This commit is contained in:
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…
x
Reference in New Issue
Block a user