/v1/min-length
Minimum length for sight distance
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/verticalcurve-api/v1/min-length" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/verticalcurve-api/v1/min-length", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/verticalcurve-api/v1/min-length");
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/verticalcurve-api/v1/min-length",
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": "Minimum curve length for stopping sight distance (AASHTO, S < L): crest L = A·S² ÷ 2158, sag (headlight) L = A·S² ÷ (400 + 3.5·S). A crest hides the road over the hump, a sag limits the headlight reach at night, so each needs enough length for the driver to see and stop. Dividing by A gives the controlling K value to round up to a design standard.",
"sag_k": 135.66,
"inputs": {
"grade_diff_pct": 5,
"sight_distance_ft": 570
},
"crest_k": 150.56,
"sag_min_length_ft": 678.3,
"crest_min_length_ft": 752.8
},
"meta": {
"timestamp": "2026-06-07T08:18:03.046Z",
"request_id": "1743f438-2160-4694-9de1-8ddf48b87194"
},
"status": "ok",
"message": "Min length",
"success": true
}