s2js
    Preparing search index...

    Interface ClosestCellQueryTarget

    Target represents the geometry to which the distance is measured. This is the base interface for all target types.

    interface ClosestCellQueryTarget {
        distanceToCell(cell: Cell): number;
        distanceToPoint(point: s2.Point): number;
        maxBruteForceIndexSize(): number;
    }

    Implemented by

    Index

    Methods

    • Returns the maximum number of cells in the index for which it is faster to use brute force search rather than the hierarchical method.

      Returns number