lonlat
v2.0.0
Published
Converters for various coordinate representations.
Downloads
5
Maintainers
Readme
lonlat
Converters for various coordinate representations.
Install
$ npm install --save lonlat
Usage
var lonlat = require('lonlat');
lonlat.geojson.centerSphere();
lonlat.mongo.toPoly();
geojson
methods always return geojson shape or collection of shapes
centerSphere
- create a Sphere corresponding to inscribed circlemultiPolygon
- create a Polygon from the string of coordinatespolygon
- create a Polygon from the string of coordinatesshapesArray
- split boxes into Polygons and MultipolygonssplitBox
- split box into grid of Polygons
mongo
methods return coordinates pairs [lon,lat] that can be indexed by mongo
toLonLat
toPoly
toBox
toBoxes
License
MIT © Damian Krzeminski