Ir al contenido
GET /v1/longitude-correction

Longitude time correction

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/sundial-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

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