jonatkins / s2-geometry-javascript

Porting Google's S2 Geometry Library to Javascript
31 stars 17 forks source link

Help Wanted: Implement S2.quadkeyToPoint(key) and S2.quadkeyToLatLng(key) #10

Closed coolaj86 closed 8 years ago

coolaj86 commented 8 years ago

We can now finally convert between S2CellId (uint64) and Hilbert Quadkey (``).

See

However, we lack the support to go from from a key to lat / lng. It seems that once this.ij and this.st are calculated, we already know this.face (from either the key or id), so we can call the lat / lng method. However, we need to get those from the key/id somehow...