S2CellId.parent

Returns the cell at the previous level or at the given level (which must be less than or equal to the current level).

  1. S2CellId parent()
    struct S2CellId
    const
    parent
    ()
  2. S2CellId parent(int level)

Meta