Skip to content

📶 Tries to gather the latest AIS position of a MMSI number

License

Notifications You must be signed in to change notification settings

thomasbrueggemann/ais.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ais.js Build Status npm

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
});

About

📶 Tries to gather the latest AIS position of a MMSI number

Resources

License

Stars

Watchers

Forks

Packages

No packages published