Giter VIP home page Giter VIP logo

flightradar24-client's Introduction

flightradar24-client

Fetch aircraft data from Flightradar24. Inofficial.

npm version build status ISC-licensed chat on gitter support me on Patreon

Installing

npm install flightradar24-client

Usage

radar(north, west, south, east)

The four parameters represent a geographical bounding box (in decimal degrees) with:

  • north: Northern edge latitude
  • west: Western edge longitude
  • south: Southern edge latitude
  • east: Eastern edge longitude
const radar = require('flightradar24-client/lib/radar')

radar(53, 13, 52, 14)
.then(console.log)
.catch(console.error)
[
	{
		id: '10a6b765',
		registration: 'EI-EGD',
		flight: 'FR8544',
		callsign: 'RYR9XK', // ICAO ATC call signature
		origin: 'STN', // airport IATA code
		destination: 'SXF', // airport IATA code

		latitude: 52.7044,
		longitude: 13.4576,
		altitude: 8800, // in feet
		bearing: 106, // in degrees
		speed: 290, // in knots
		rateOfClimb: -1216, // in ft/min
		isOnGround: false,

		squawkCode: '0534', // https://en.wikipedia.org/wiki/Transponder_(aeronautics)
		model: 'B738', // ICAO aircraft type designator
		modeSCode: '4CA8AF', // ICAO aircraft registration number
		radar: 'T-EDDT1', // F24 "radar" data source ID
		isGlider: false,

		timestamp: 1520538174
	}
	// …
]

flight(id)

You may use the id from one of the results above to query more details. The output will roughly look like the Friendly Public Transport Format.

const flight = require('flightradar24-client/lib/flight')

flight('e3147c6')
.then(console.log)
.catch(console.error)
{
	id: 'e314807',
	callsign: 'BER839C',
	liveData: true,
	model: 'A320',
	registration: 'D-ABDT',
	airline: 'AB',
	origin: {
		id: 'TXL',
		name: 'Berlin Tegel Airport',
		coordinates: {latitude: 52.560001, longitude: 13.288, altitude: 122},
		timezone: 'Europe/Berlin',
		country: 'DEU'
	},
	destination: {
		id: 'GOT',
		name: 'Gothenburg Landvetter Airport',
		coordinates: {latitude: 57.66283, longitude: 12.27981, altitude: 506},
		timezone: 'Europe/Stockholm',
		country: 'SWE'
	},
	departure: '2017-07-22T17:15:00+02:00',
	scheduledDeparture: '2017-07-22T17:15:00+02:00',
	departureTerminal: null,
	departureGate: 'C40',
	arrival: '2017-07-22T18:35:00+02:00',
	scheduledArrival: '2017-07-22T18:35:00+02:00',
	arrivalTerminal: null,
	arrivalGate: '19A',
	delay: 1757
}

Related

Contributing

If you have a question or have difficulties using flightradar24-client, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.

flightradar24-client's People

Contributors

derhuerst avatar e3v3a avatar greenkeeper[bot] avatar

Stargazers

Tominous avatar

Watchers

James Cloos avatar Tominous avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.