code: private List<Point> simplifyPoints(List<Point> points) {
  
          List<Point> simplifiedPoints = null;
          if (simplifyTolerance != null) {
  
              // Reproject to web mercator if not in meters
              if (projection != null && !projection.isUnit(Units.METRES)) {
                  points = toWebMercator.transform(points);
              }
  
              // Simplify the points
              simplifiedPoints = GeometryUtils.simplifyPoints(points,
                      simplifyTolerance);
  
              // Reproject back to the original projection
              if (projection != null && !projection.isUnit(Units.METRES)) {
                  simplifiedPoints = fromWebMercator.transform(simplifiedPoints);
              }
          } else {
              simplifiedPoints = points;
          }
  
          return simplifiedPoints;
      }
docs: When the simplify tolerance is set, simplify the points to a similar
  curve with fewer points.
  
  @param points ordered points
  @return simplified points