Novelty Promotes Magicians
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    planefinderpublic

    node-planefinder

    This is a node.js module that can get aircraft location information from planefinder.net.

    build status

    Here's an example of how to use the library to track aircraft (this code is available in bin/demo.js):

    planefinder = require('planefinder');
    geolib = require('geolib');
     
    // Let's observe planes within 10 km of LAX airport. 
     
    var laxCoords = {
      latitude: 33.9471,
      longitude: -118.4082
    };
    var maxDistance = 10000;  // meters 
     
    var bounds = geolib.getBoundsOfDistance(laxCoords, maxDistance);
     
    var client = planefinder.createClient({
      bounds: bounds
    });
    client.on('data', function(traffic) {
      console.log(traffic);
    });
    client.resume();

    And here's what the output looks like:

    $ npm install
    $ node bin/demo.js
    [ { hex_ident: '3C4A88',
        callsign: 'LH451',
        lat: 33.8845,
        lon: -118.516,
        altitude: 2325,
        track: 203,
        ground_speed: 246 },
      { hex_ident: 'A33D8C',
        callsign: '',
        lat: 33.9333,
        lon: -118.386,
        altitude: 0,
        track: 270,
        ground_speed: 0 },
      { hex_ident: 'A6A728',
        callsign: '',
        lat: 33.9337,
        lon: -118.389,
        altitude: 0,
        track: 174,
        ground_speed: 2 },
      ...

    Keywords

    none

    install

    npm i planefinder

    Downloadsweekly downloads

    1

    version

    0.0.4

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar