Vai al contenuto
GET /v1/component

Crosswind & headwind components

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/crosswind-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}