/api/v1/e6b/wind-triangle/calculateCommercial PilotCalculate Wind Triangle
Solves the wind triangle to compute true heading and ground speed.
Code Examples
curl \
-X POST \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"trueCourseDegrees": 0,
"trueAirspeedKt": 0,
"windDirectionDegrees": 0,
"windSpeedKt": 0
}' \
"https://api.preflightapi.io/api/v1/e6b/wind-triangle/calculate"curl \
-X POST \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"trueCourseDegrees": 0,
"trueAirspeedKt": 0,
"windDirectionDegrees": 0,
"windSpeedKt": 0
}' \
"https://api.preflightapi.io/api/v1/e6b/wind-triangle/calculate"Description
Given your desired true course, true airspeed, and the wind conditions, this calculates the heading you need to fly to stay on course and your resulting ground speed.
Response Fields
TrueHeadingDegrees— the heading to fly (true course + wind correction angle)
GroundSpeedKt— your speed over the ground after accounting for wind
WindCorrectionAngleDegrees— the crab angle needed to stay on course (positive = correct to the right, negative = correct to the left)
HeadwindComponentKt— positive = headwind, negative = tailwind
CrosswindComponentKt— positive = from the right, negative = from the left
Wind direction is the direction the wind is blowing *from* (standard meteorological convention).
Request BodyWindTriangleRequestDto
True course in degrees (0–360)
True airspeed in knots (must be greater than 0)
Wind direction in degrees (0–360)
Wind speed in knots (must be ≥ 0)
Response Schema
True heading in degrees (0–360), corrected for wind
Ground speed in knots
Wind correction angle in degrees (positive = right correction, negative = left)
Headwind component in knots (positive = headwind, negative = tailwind)
Crosswind component in knots (positive = from the right, negative = from the left)
True course used in calculation (degrees)
True airspeed used in calculation (knots)
Wind direction used in calculation (degrees)
Wind speed used in calculation (knots)
Machine-readable error code (e.g., "AIRCRAFT_NOT_FOUND").
Human-readable error message suitable for display.
Additional error details (only included in development environment).
Name of the external service that failed (only included for 503 errors).
Field-level validation errors (only for validation failures).
UTC timestamp when the error occurred.
Correlation ID for tracing the request.
Request path that generated the error.