/v1/geometry
Curve elements from radius and angle
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/horizontalcurve-api/v1/geometry" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/horizontalcurve-api/v1/geometry", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/horizontalcurve-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/horizontalcurve-api/v1/geometry",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"note": "A simple circular curve from the radius R and the intersection (deflection) angle Δ: tangent T = R·tan(Δ/2), curve length L = R·Δ (radians), long chord LC = 2R·sin(Δ/2), middle ordinate M = R(1−cos(Δ/2)) and external E = R(sec(Δ/2)−1). The degree of curve (arc definition) = 5729.578 ÷ R is the US highway shorthand for sharpness — a bigger radius is a flatter, faster curve.",
"inputs": {
"radius_ft": 500,
"deflection_angle_deg": 30
},
"long_chord_ft": 258.819,
"curve_length_ft": 261.799,
"tangent_length_ft": 133.975,
"middle_ordinate_ft": 17.037,
"degree_of_curve_deg": 11.4592,
"external_distance_ft": 17.638
},
"meta": {
"timestamp": "2026-06-07T08:18:03.268Z",
"request_id": "0177095d-f7d3-4f26-a37f-7b71e92db5e2"
},
"status": "ok",
"message": "Curve geometry",
"success": true
}