code: public static Geometry simplify(Geometry geometry, double distance) {
          if(geometry == null){
              return null;
          }
          return DouglasPeuckerSimplifier.simplify(geometry, distance);
      }
docs: Simplify the geometry using the douglad peucker algorithm.
  
  @param geometry
  @param distance
  @return