public static List<Coordinate> simplify(List<Coordinate> coords, double distanceTolerance, boolean area) {
    if (coords.isEmpty()) {
      return List.of();
    }

    return (new DouglasPeuckerSimplifier(distanceTolerance)).transformCoordinateList(coords, area);
  }
Returns a copy of {@code coords}, simplified using Douglas Peucker Algorithm.

@param coords            the coordinate list to simplify
@param distanceTolerance the threshold below which we discard points
@param area              true if this is a polygon to retain at least 4 points to avoid collapse
@return the simplified coordinate list
planetiler-core/src/main/java/com/onthegomap/planetiler/geo/DouglasPeuckerSimplifier.java