Μετάβαση στο περιεχόμενο
GET /v1/component

Crosswind & headwind components

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/crosswind-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "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
}