Accessing Real-Time Telemetry
This guide explains how to access and visualize real-time telemetry, typically by using a combination of the REST API and real-time Socket.io to monitor airspace activity in real-time.
Authenticate Your API Requests
Make sure you have the required access to the necessary resources. For detailed instructions, refer to the authentication guide.
Set Your Observation Parameters
Decide whether you want to monitor a specific geographical area (
bbox
) or a particular device (uas_id
).Note: The geographical region has limitations. Large areas such as continents or countries cannot be observed. For details, see the REST API guide.
(Optional) Make an Initial Request to Get the Airspace State
Before starting real-time updates, we recommend fetching the initial airspace state. This helps initialize your application’s state. For example, retrieve the last 5 minutes of airspace data to create a starting point for real-time monitoring.
Receive Real-Time Telemetry Updates
Option 1: Connect to Socket.io for Real-Time Updates
Using Socket.io allows you to receive real-time updates with low latency, without needing to worry about time range query parameters. This is the preferred option for responsive applications.
Option 2: Poll the REST API for Updates
Alternatively, you can periodically poll the API for updates. However, this approach is less efficient for applications that need frequent updates.
If you choose this option, ensure you use the
Date
header (needs to be converted to ISO 8601) from the last response for thefrom
parameter in subsequent calls, to avoid receiving duplicate data.Not RecommendedPolling is generally not suitable for high-frequency updates. Polling this endpoint with high frequency (> 1 per second) can result in rate limiting errors.
Retrieve Operation Details
While telemetry data provides real-time flight information, it may not include essential details such as UA identification and type. You can retrieve additional information about the operation itself.
Option 1: Listen for Operation Updates via Socket.io
With Socket.io, you can listen to the
operation
channel for updates when a new operation is created or existing operations are modified. However, network interruptions can cause data loss, so it's best to combine this with occasional HTTP requests to ensure your application remains in sync.Option 2: Use HTTP Requests as Needed
When necessary, you can request the operation details via the Operation API using the
operation_id
. This will give you the stored information about the airspace operation.Keep Your Viewport Up-to-Date
If your application displays a dynamic map or the area of interest changes over time, ensure you update the
bbox
query parameter in your API requests or sendviewport
events when using Socket.io.For more information, refer to the API documentation and the Socket.io guide.
You can also access additional telemetry streams for tracking the UA operator or the RID system in real time. For more details, see the DUMP guide.