/v1/geometry
K value, type and turning point
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
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_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"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
}