0.4.9 • Published 10 years ago

anyboxer v0.4.9

Weekly downloads
2
License
MIT
Repository
github
Last release
10 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

10 years ago

0.4.7

10 years ago

0.4.6

10 years ago

0.4.5

10 years ago

0.4.4

10 years ago

0.4.3

10 years ago

0.4.2

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.2

10 years ago

0.2.1

11 years ago

0.1.1

11 years ago

0.0.1

11 years ago

0.1.0

11 years ago