0.4.9 • Published 9 years ago

anyboxer v0.4.9

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

anyboxer

server-side routeboxer

Installation

npm install anyboxer --save

Usage

var anyBoxer = require('anyboxer');

var options = {
    split: false,
    reverse: true
}

anyBoxer(data, options, function(err, boxes) {
    //
});

Where data has a FeatureCollection format.

If split is true the result will be divided. Default split is false.

If reverse is true then each [lat, lon] coordinates will become [lon, lat].

data example

var data = { 
    "type": "FeatureCollection",
    "features": [
        {
           "type": "Feature",
           "geometry": {
               "type": "LineString",
               "coordinates": [ [0,0], [1,1] ] // [ [lat, lon], [lat, lon] ]
           },
           "properties": {
              "fat": 5
           }
        },
    ]
};

License

MIT

0.4.9

9 years ago

0.4.7

9 years ago

0.4.6

9 years ago

0.4.5

9 years ago

0.4.4

9 years ago

0.4.3

9 years ago

0.4.2

9 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.3.0

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.1.1

9 years ago

0.0.1

9 years ago

0.1.0

9 years ago