Function S2Polygon.getSnapLevel
If all of the polygon's vertices happen to be the centers of S2Cells at some level, then return that level, otherwise return -1. See also InitToSnapped() and s2builderutil::S2CellIdSnapFunction. Returns -1 if the polygon has no vertices.
int getSnapLevel() const;