public static Geometry simplify(Geometry geom, double distanceTolerance) {
    if (geom.isEmpty() || (distanceTolerance < 0.0)) {
      return geom.copy();
    }

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

@param geom              the geometry to simplify (will not be modified)
@param distanceTolerance the threshold below which we discard points
@return the simplified geometry
planetiler-core/src/main/java/com/onthegomap/planetiler/geo/DouglasPeuckerSimplifier.java