/v1/horizon
Distance to sea horizon and dip
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/horizon-api/v1/horizon" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/horizon-api/v1/horizon", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/horizon-api/v1/horizon");
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/horizon-api/v1/horizon",
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 distance to the sea horizon ≈ 1.169·√(height of eye in feet) nautical miles, including the standard atmospheric refraction that bends the line of sight a little past the geometric edge — at 9 ft of eye height the horizon is about 3.5 nm off. The dip is how far below the true horizontal that watery edge lies (≈ 0.97'·√h), the correction a navigator subtracts from a sextant altitude shot to the sea horizon.",
"inputs": {
"eye_height_ft": 9
},
"dip_arcmin": 2.91,
"distance_to_horizon_km": 6.495,
"distance_to_horizon_nm": 3.507
},
"meta": {
"timestamp": "2026-06-07T08:17:58.591Z",
"request_id": "2a886016-e0ff-4d14-9335-07632ea90693"
},
"status": "ok",
"message": "Distance to horizon",
"success": true
}