simplify function
Implementation
List<dynamic> simplify(points, {tolerance = 1, highestQuality = false}) {
if (points.length <= 2) return points;
var sqTolerance = tolerance != null ? tolerance * tolerance : 1;
points = highestQuality ? points : simplifyRadialDist(points, sqTolerance);
points = simplifyDouglasPeucker(points, sqTolerance);
return points;
}