2016-07-27 07:56:55 -04:00
2016-07-26 00:42:53 -04:00
2016-07-27 07:56:55 -04:00
2016-07-26 00:42:53 -04:00
2016-07-26 00:44:38 -04:00
2016-07-26 00:42:53 -04:00
2016-07-26 01:48:00 -04:00
2016-07-26 00:42:53 -04:00

s2-geometry (JavaScript/ES5.1)

A pure JavaScript/ES5.1 port of Google/Niantic's S2 Geometry library (used by Ingress, Pokemon GO)

Currently contains basic support for S2Cell

Simple Examples

var level = 15;
var latlng = { lat: 40.2574448, lng: -111.7089464 };
var cell = S2.S2Cell.FromLatLng(latlng, level);

cell.getNeighbors();  // [ cellLeft, cellDown, cellRight, cellUp ]

cell.getLatLng();     // { lat: 40.2574448, lng: -111.7089464 }
Description
Porting Google's S2 Geometry Library to Javascript
Readme 107 KiB
Languages
JavaScript 100%