Zum Inhalt springen
GET /v1/current

Set & drift from a DR-to-fix offset

Live testen

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

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

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

API-Key holen

Code-Snippets

curl "https://api.oanor.com/setanddrift-api/v1/current" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/setanddrift-api/v1/current", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/setanddrift-api/v1/current");
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/setanddrift-api/v1/current",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

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

{
    "data": {
        "note": "The current is found by comparing where dead reckoning said you'd be with where a fix actually puts you: the set is the bearing from the DR position to the fix (the way the current pushed you) and the drift is that distance ÷ the elapsed time. So a fix 3 nm at 045° from a 2-hour DR means a current setting 045° at 1.5 knots — carry it forward to correct the next leg.",
        "inputs": {
            "elapsed_hours": 2,
            "dr_to_fix_bearing_deg": 45,
            "dr_to_fix_distance_nm": 3
        },
        "set_deg": 45,
        "drift_kt": 1.5
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:59.084Z",
        "request_id": "df9e9382-2894-40ac-a862-fb8b5c4be2f9"
    },
    "status": "ok",
    "message": "Set and drift",
    "success": true
}