docs: function(geometry, options) {
          var edge = !(options && options.edge === false);
          var details = edge && options && options.details;
          var result, best, distance;
          var min = Number.POSITIVE_INFINITY;
          for(var i=0, len=this.components.length; i<len; ++i) {
              result = this.components[i].distanceTo(geometry, options);
              distance = details ? result.distance : result;
              if(distance < min) {
                  min = distance;
                  best = result;
                  if(min == 0) {
                      break;
                  }
              }
          }
          return best;
      }