public LoopLineMerger setStubMinLength(double stubMinLength) {
    this.stubMinLength = stubMinLength;
    return this;
  }
Sets the minimum length of stubs to be removed during processing.
<p>
Stubs are short "hair" line segments that hang off of a longer linestring without connecting to anything else.
{@code stubMinLength <= 0} disables stub removal.
planetiler-core/src/main/java/com/onthegomap/planetiler/util/LoopLineMerger.java