/v1/geographic-range
Range a light/landmark is first seen
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}