Naar de inhoud
GET /v1/longitude-correction

Longitude time correction

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/sundial-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/sundial-api/v1/longitude-correction" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/sundial-api/v1/longitude-correction", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/sundial-api/v1/longitude-correction");
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/sundial-api/v1/longitude-correction",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "A sundial reads local apparent (solar) time, but clocks run on a zone's reference meridian, so you add a longitude correction: 4 minutes of time per degree of longitude — correction = 4 × (reference meridian − local longitude), east positive. A dial at 7.5° E on Central European Time (15° E) reads 30 minutes slow versus the clock, so add 30 minutes. (For full clock time also apply the equation of time, which varies through the year.)",
        "inputs": {
            "local_longitude_deg": 7.5,
            "reference_meridian_deg": 15
        },
        "correction_minutes": 30
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:50.007Z",
        "request_id": "d2cb961c-d27b-45fc-aada-9fde4cff6040"
    },
    "status": "ok",
    "message": "Longitude correction",
    "success": true
}