This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Description
I am trying to use this for a project, did a simple test like the following:
const s2 = require('s2');
let ll = new s2.S2LatLng(0, 0);
let cell = new s2.S2Cell(ll);
let cid = new s2.S2CellId(ll);
console.log(cid.id());
console.log(cid.parent(10).id());
console.log(cid.parent(11).id());
console.log(cid.parent(12).id());
console.log(cid.parent(13).id());
The results is like the following:
1152921504606847000
1152922604118474800 (if I use this on Java / go lib, it returns level 28)
1152921779484754000 (level 28 on java lib)
1152921573326323700 (level 29 on java lib)
1152921521786716200
On Java lib and Golang version, it is like below:
1152921504606846977
1152922604118474752
1152921779484753920
1152921573326323712
1152921521786716160
Am I using it wrong or some misunderstanding?