Ir al contenido
GET /v1/geographic-range

Range a light/landmark is first seen

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/horizon-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/horizon-api/v1/geographic-range" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/horizon-api/v1/geographic-range", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/horizon-api/v1/geographic-range");
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/geographic-range",
    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 geographic range — how far off a light or landmark first peeps over the horizon — is the sum of two horizon distances: your own (from height of eye) plus the object's (from its height): 1.169·(√h_eye + √h_object). A 100 ft lighthouse seen from a 9 ft cockpit lifts above the sea at about 15 nm. It is purely geometric; whether you actually SEE it also needs the light's luminous range (its brightness) and the visibility.",
        "inputs": {
            "eye_height_ft": 9,
            "object_height_ft": 100
        },
        "geographic_range_km": 28.145,
        "geographic_range_nm": 15.197
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:58.488Z",
        "request_id": "e2dfea0e-9433-40a6-8800-95740b963436"
    },
    "status": "ok",
    "message": "Geographic range",
    "success": true
}