2.0.0 • Published 2 months ago

lonlat v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
2 months ago

NPM version Build Status Dependency Status

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 circle
  • multiPolygon - create a Polygon from the string of coordinates
  • polygon - create a Polygon from the string of coordinates
  • shapesArray - split boxes into Polygons and Multipolygons
  • splitBox - 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

2.0.0

2 months ago

1.0.2

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.4.0

8 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago

0.0.0

9 years ago