Naar de inhoud
GET /v1/min-length

Minimum length for sight distance

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

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