Function S2CellId.distanceFromBegin

Returns the number of steps that this cell is from Begin(level()). The return value is always non-negative.

long distanceFromBegin() const;