Μετάβαση στο περιεχόμενο
GET /v1/horizon

Distance to sea horizon and dip

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/horizon-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "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
}