You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
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
I am trying to use this for a project, did a simple test like the following:
The results is like the following:
On Java lib and Golang version, it is like below:
Am I using it wrong or some misunderstanding?
The text was updated successfully, but these errors were encountered: