/v1/current
Set & drift from a DR-to-fix offset
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}