/v1/geographic-range
Range a light/landmark is first seen
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"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
}