Skip to content

dvbug/s2geo-node

Repository files navigation

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

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

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

About

google s2 geometry for nodejs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages