To load real world air traffic, the Nice Airplanes Radar could load data from these networks:
Source Networks | README |
---|---|
OpenSky Network | The OpenSky Network is a community-based receiver network which has been continuously collecting air traffic surveillance data since 2013. Their API is open to the comunnity. |
FlightRadar24 | The most famous receiver network. Their API is not open to the comunnity, they have paid plans. Their API is here for test only, do not use it in commercial/open source/personal projects. |
ModeSMixer2 | ModeSMixer2 is console application for combining and rebroadcasting feeds with Mode-S data in a variety of formats. This software is commonly used by single receivers. |
It is only needed to select the network.
var client = new AirplanesRadar(SourceAPI.OpenSky);
var listOfWorldAirplanes = await client.GetAirplanes();
Would you like to see the airplanes around your city? It is very easy too, you just need to know what is the airport code, actually I meant, the airport ICAO code from where you wish.
var client = new AirplanesRadar(SourceAPI.OpenSky);
// Let's see how is the air traffic in Los Angeles
var listOfWorldAirplanes = await client.GetAirplanes(Airport.GetAirportByICAO("KLAX").Position);
Complete C# console example using Latitude/Longitude example:
using NiceAirplanesRadar;
using System;
namespace ConsoleApp
{
class Program
{
static void Main(string[] args)
{
// Create an instance of the AirplaneLoader class
var airplaneLoader = new AirplaneLoader();
// Define the airport location.
var location = new Location(52.308056, 4.764167);
// Load airplanes from the location asynchronously
var airplanes = airplaneLoader.LoadAirplanesFrom(location).Result;
// Print some information about the airplanes
foreach (var airplane in airplanes)
{
Console.WriteLine($"Model: {airplane.Model}");
Console.WriteLine($"Altitude: {airplane.Altitude}");
Console.WriteLine($"Speed: {airplane.Speed}");
Console.WriteLine();
}
}
}
}