code: public static Boolean isWithinDistance(Geometry geomA, Geometry geomB, Double distance) {
          if(geomA == null||geomB == null){
              return null;
          }
          return geomA.isWithinDistance(geomB, distance);
      }
docs: Returns true if the geometries are within the specified distance of one another.
  
  @param geomA Geometry A
  @param geomB Geometry B
  @param distance Distance
  @return True if if the geometries are within the specified distance of one another