Aller au contenu
GET /v1/geometry

Curve elements from radius and angle

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

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