/v1/object-height
Object height for a target range
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/horizon-api/v1/object-height" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/horizon-api/v1/object-height", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/horizon-api/v1/object-height");
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/object-height",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"note": "Turning the geographic-range formula around: the object height needed to be seen at a target range = (range ÷ 1.169 − √eye_height)², in feet. It is how tall a tower, light or headland must stand to break the horizon at the distance you want — or, the other way, how close you must be before a known landmark of a given height appears.",
"inputs": {
"range_nm": 15.2,
"eye_height_ft": 9
},
"object_height_ft": 100.05
},
"meta": {
"timestamp": "2026-06-07T08:17:58.683Z",
"request_id": "17f0caa9-ae57-4285-966c-23e871e0eb23"
},
"status": "ok",
"message": "Object height",
"success": true
}