Function S2CellId.child

Returns the immediate child of this cell at the given traversal order position (in the range 0 to 3). This cell must not be a leaf cell.

S2CellId child (
  int position
) const;