s2geo-node
One day i need to play with S2 Geometry in Node, i found node-s2, unfortunately that library is outdated only support node v0.10.0 so i am trying to make the addon to be work again.
Bindings for the S2 Geometry Library into node.js.
For usage information, see the examples in the examples/
directory.
Windows User
For Windows User please make sure you have installed :
- Latest NPM Version , for make sure please run : npm install -g npm@next
- Visual C++ Build Tools
- Python 2.7
Todo List
-. Porting More Class -. Convert to Nan v2 -. Make a BAT script for help Windows User checking the requirement.
Currently Ported
- S2CellId
- S2LatLng
- S2Point
- S2Cell
- S2Cap
- S2LatLngRect
- S1Interval
- S1Angle
Documentation: API.md
Notes
Some of the S2 API is not wrapped because it isn't meant to be exposed in this way, and is blocked from wrapping by DISALLOW_COPY_AND_ASSIGN.
- S2CellUnion
- S2Loop
- S2Polyline
- S2Polygon
- S2RegionCoverer
- S2RegionIntersection
See Also
- s2-geometry-javascript - an incomplete port of S2 to JavaScript.
- gos2 - very incomplete port to Go
- s2-geometry-php - another very incomplete port to PHP
- mapbox/node-s2
- nodes2ts
Thanks
- mapbox team
- cypherix93 - for make this libs can compile in Windows
Contact Me
@vito Feel free to contact me for help or anything else