/api/v1/e6b/crosswind/calculateCommercial PilotCalculate Crosswind
Calculates crosswind and headwind components from manually provided wind and runway heading values.
Code Examples
curl \
-X POST \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"windDirectionDegrees": 230,
"windSpeedKt": 15,
"windGustKt": 22,
"runwayHeadingDegrees": 180
}' \
"https://api.preflightapi.io/api/v1/e6b/crosswind/calculate"curl \
-X POST \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"windDirectionDegrees": 230,
"windSpeedKt": 15,
"windGustKt": 22,
"runwayHeadingDegrees": 180
}' \
"https://api.preflightapi.io/api/v1/e6b/crosswind/calculate"Description
Provide wind direction, wind speed, and a runway heading to compute the headwind and crosswind components. Optionally include a gust speed to also compute gust components.
Sign Conventions
CrosswindKt— positive = wind from the right, negative = wind from the left
HeadwindKt— positive = headwind (favorable), negative = tailwind (unfavorable)
Request BodyCrosswindCalculationRequestDto
Wind direction in degrees (0-360, or null for variable)
Wind speed in knots
Wind gust speed in knots (optional)
Runway heading in magnetic degrees (0-360)
Response Schema
Crosswind component in knots. Positive = from the right, Negative = from the left
Headwind component in knots. Positive = headwind, Negative = tailwind
Crosswind component from gusts in knots (if gust data provided). Positive = from the right
Headwind component from gusts in knots (if gust data provided). Positive = headwind
Wind direction used in calculation (degrees)
Wind speed used in calculation (knots)
Wind gust speed used in calculation (knots)
Runway heading used in calculation (degrees)
Whether the wind was reported as variable (VRB)
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.