Aller au contenu
GET /v1/meta

Spec

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/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/horizontalcurve-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/horizontalcurve-api/v1/meta");
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/meta",
    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": {
        "notes": "US units (ft, mph, deg). T = R·tan(Δ/2); L = R·Δ(rad); LC = 2R·sin(Δ/2); M = R(1−cos(Δ/2)); E = R(sec(Δ/2)−1); degree of curve = 5729.578/R; R_min = V²/(15(e+f)). For slope/grade conversion use a slope API; for open-channel flow a Manning API.",
        "service": "horizontalcurve-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/geometry": "Tangent, length, chord, ordinates and degree of curve.",
            "GET /v1/stations": "PC and PT stations from the PI station.",
            "GET /v1/min-radius": "Minimum radius for a design speed (AASHTO)."
        },
        "description": "Horizontal road-curve geometry: curve elements from radius and angle, PC/PT stationing, and minimum radius for a design speed."
    },
    "meta": {
        "timestamp": "2026-06-07T08:18:03.575Z",
        "request_id": "bcd0cad0-2ae5-42a2-9c77-ff2d35e4c023"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}