Announcing adsb.exposed - Interactive Visualization and Analytics on ADS-B Flight Data with ClickHouse

Alexey Milovidov
14 min readintermediate
--
View Original

Overview

The article introduces adsb.exposed, an interactive tool for visualizing and analyzing ADS-B flight data using ClickHouse. It highlights the capabilities of the tool, including real-time data querying, custom SQL visualizations, and the underlying technology stack.

What You'll Learn

1

How to visualize ADS-B flight data using ClickHouse

2

Why using custom SQL queries enhances data analysis capabilities

3

When to use different levels of detail in data visualization

Prerequisites & Requirements

  • Understanding of ADS-B flight data and its applications
  • Familiarity with ClickHouse and SQL

Key Questions Answered

What is ADS-B and how is it used in flight tracking?
ADS-B, or Automatic Dependent Surveillance-Broadcast, is a radio protocol that broadcasts flight data from aircraft. It is used for real-time flight tracking and is essential for air traffic management, allowing various aircraft and ground stations to receive accurate position information.
How does the adsb.exposed tool visualize air traffic data?
The adsb.exposed tool visualizes air traffic data by aggregating ADS-B information into a ClickHouse database and rendering it on a map using the Leaflet library. Users can customize visualizations with SQL queries, allowing them to drill down from billions of records to specific data points.
What are the data sources used for ADS-B information?
The tool utilizes data from ADSB.lol, which provides unrestricted historical data, and ADSB-Exchange, which offers daily samples. These sources collectively contribute millions of records daily, enabling comprehensive flight data analysis.
What is the database schema for the planes_mercator table?
The planes_mercator table schema includes fields such as mercator_x, mercator_y, time, date, latitude, longitude, altitude, and various aircraft parameters. This schema allows efficient querying and visualization of flight data.

Key Statistics & Figures

Total records in planes_mercator table
44.47 billion rows
As of March 29th, 2024, the table is continuously updated with new records.
Disk space used by the database
1.6 TB
This reflects the storage requirements for managing the extensive flight data collected.
Daily records from ADSB.lol
30 to 50 million records per day
This data source provides unrestricted access to historical ADS-B data.
Daily records from ADSB-Exchange
around 1.2 billion records per day
This source offers samples with better coverage, enhancing the dataset's richness.

Technologies & Tools

Some links below are affiliate links. We may earn a commission if you make a purchase.

Database
Clickhouse
Used for storing and querying the massive amounts of ADS-B flight data.
Frontend
Leaflet
Library used for rendering interactive maps to visualize flight data.

Key Actionable Insights

1
Utilize the interactive features of adsb.exposed to explore local air traffic data visually.
This can help in understanding air traffic patterns in your area and can be useful for aviation enthusiasts or professionals in air traffic management.
2
Experiment with custom SQL queries to tailor the visualizations to your specific interests.
By adjusting the SQL queries, users can focus on particular aircraft types or flight paths, enhancing the analytical capabilities of the tool.
3
Leverage the progressive loading feature to improve performance when visualizing large datasets.
Starting with a lower detail level allows for quicker initial rendering, which is crucial for maintaining responsiveness in applications dealing with vast amounts of data.

Common Pitfalls

1
Overloading the client-side cache can lead to excessive memory usage.
As users browse for extended periods, the page may consume too much memory, which can slow down performance. It's essential to implement cache management strategies to mitigate this issue.

Related Concepts

Ads-b Technology
Data Visualization Techniques
SQL Query Optimization