Zum Inhalt springen
GET /v1/component

Crosswind & headwind components

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/crosswind-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/crosswind-api/v1/component" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/crosswind-api/v1/component", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/crosswind-api/v1/component");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/crosswind-api/v1/component",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Crosswind = wind·sin(θ), headwind = wind·cos(θ), where θ is the angle between the wind direction and the runway heading. A 30° offset at 20 kt gives 10 kt crosswind and 17.3 kt headwind.",
        "inputs": {
            "wind_speed": 20,
            "runway_heading": 90,
            "wind_direction": 120
        },
        "headwind": 17.3205,
        "tailwind": 0,
        "crosswind": 10,
        "head_or_tail": "headwind",
        "angle_off_deg": 30,
        "crosswind_from": "right"
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:18.398Z",
        "request_id": "6d505d52-21c6-45cf-b6cd-2be86636e740"
    },
    "status": "ok",
    "message": "Wind components",
    "success": true
}