s2js
    Preparing search index...

    Interface ClosestCellQueryResult

    Represents a closest (cellID, label) pair result from the query.

    interface ClosestCellQueryResult {
        cellID: bigint;
        distance: number;
        label: number;
    }
    Index

    Properties

    Properties

    cellID: bigint

    The indexed S2CellId.

    distance: number

    The distance from the target to this cell.

    label: number

    The integer label associated with the S2CellId.