code: public Double getDistance() {
          if (geomA == null || geomB == null) {
              return null;
          }
          if (geomA.isEmpty() || geomB.isEmpty()) {
              return 0.0;
          }
          if (geomA.equals(geomB)) {
              sameGeom = true;
          }
          if (maxDistanceFilter == null) {
              computeMaxDistance();
          }
          return maxDistanceFilter.getDistance();
  
      }
docs: Return the max distance
  
  @return