Aller au contenu
GET /v1/longitude-correction

Longitude time correction

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/sundial-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

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