Aller au contenu
GET /v1/geometry

K value, type and turning point

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/verticalcurve-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/verticalcurve-api/v1/geometry" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/verticalcurve-api/v1/geometry", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/verticalcurve-api/v1/geometry");
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/geometry",
    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 vertical curve is a parabola joining two grades: the algebraic difference A = g2 − g1 (negative = crest, positive = sag), and the K value = length ÷ |A| is the length per percent — the headline number on every design chart. The high or low point, where the grade passes through zero, sits at −g1·L/A from the PVC; if that falls outside the curve the summit/sag is at one end. Give the PVI station and elevation to get the PVC/PVT and turning-point coordinates.",
        "inputs": {
            "length_ft": 400,
            "grade_in_pct": 3,
            "grade_out_pct": -2
        },
        "k_value": 80,
        "curve_type": "crest",
        "pvc_station_ft": 4800,
        "pvt_station_ft": 5200,
        "pvc_elevation_ft": 94,
        "pvt_elevation_ft": 96,
        "turning_point_offset_ft": 240,
        "algebraic_grade_diff_pct": -5,
        "turning_point_station_ft": 5040,
        "turning_point_elevation_ft": 97.6
    },
    "meta": {
        "timestamp": "2026-06-07T08:18:02.947Z",
        "request_id": "0a1c1c52-0729-491e-adbc-3b7d2b46a712"
    },
    "status": "ok",
    "message": "Curve geometry",
    "success": true
}