ais
v2.0.1
Published
Tries to gather the latest AIS position of a MMSI number
Downloads
25
Maintainers
Readme
ais.js
Tries to gather the latest AIS position of a MMSI number
Installation
npm install ais
Usage
var ais = require("ais");
// pass the MMSI as first parameter
ais.get(211704920, function(pos, more) {
console.log(pos); // prints either a lat/long array
// [56.57469, 9.05306] or null
console.log(more); // prints more information about the vessel
// {course: 360, speed: 0.5, name: "TUULI"}
// speed in knots, course in degrees
});