Geo-lib module for fast calculations of distance, speed and heading
The start of my new geo-lib module. This Node.js module is built with performance and speed as priority one.
Why did I start this module?
I need a module that is able to do millions of calculations every minute. This module is going to be developed
according to these demands. I'll always be looking out for de-optimization inside the V8 engine.
Howto get started using this module
$ npm install geo-lib --save
Then use it in your code.
To find the distance between 2 geo points:
let geoLib = require('geo-lib');
let result = geoLib.distance({
p1: { lat: 70.3369224, lon: 30.3411273 },
p2: { lat: 59.8939528, lon: 10.6450348 }
});
To find the distance and speed between 2 geo points:
let geoLib = require('geo-lib');
let result = geoLib.distance({
p1: { lat: 70.3369224, lon: 30.3411273 },
p2: { lat: 59.8939528, lon: 10.6450348 },
timeUsed: 86400 * 5
});
Howto to get started with contributions
$ git clone git@github.com:5orenso/geo-lib.git
$ cd geo-lib/
$ npm install
Start developing. Remember to start watching your files:
$ grunt watch
Howto contribute
$ git clone git@github.com:5orenso/geo-lib.git
Do your magic and create a pull request.
Howto report issues
Use the Issue tracker
Howto update CHANGELOG.md
$ bash ./changelog.sh
Howto upgrade modules
$ npm install -g npm-check-updates
$ ncu -u
$ npm install --save --no-optional
HOWTO upgrade dev environment
$ npm install buster --save-dev
$ npm install buster-istanbul --save-dev
$ npm install grunt --save-dev
$ npm install grunt-buster --save-dev
$ npm install grunt-contrib-jshint --save-dev
$ npm install grunt-contrib-nodeunit --save-dev
$ npm install grunt-contrib-watch --save-dev
$ npm install grunt-coveralls --save-dev
$ npm install grunt-jscs --save-dev
$ npm install grunt-nodemon --save-dev
$ npm install grunt-shell --save-dev
$ npm install grunt-jsdoc --save-dev
More about the author