Function S2CellId.advance

This method advances or retreats the indicated number of steps along the Hilbert curve at the current level, and returns the new position. The position is never advanced past End() or before Begin().

S2CellId advance (
  long steps
) const;