Aller au contenu
GET /v1/stations

PC and PT stations from the PI

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/stations" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/horizontalcurve-api/v1/stations", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/horizontalcurve-api/v1/stations");
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/stations",
    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": "The curve is laid out from the PI (point of intersection of the two tangents): the PC (point of curvature, where the curve begins) = PI − tangent, and the PT (point of tangency, where it ends) = PC + curve length. Note the PT is NOT PI + tangent — you travel the longer arc, not the two straight tangents, so chaining station equations along a road must follow the curve length.",
        "inputs": {
            "radius_ft": 500,
            "pi_station_ft": 1000,
            "deflection_angle_deg": 30
        },
        "pc_station_ft": 866.025,
        "pt_station_ft": 1127.825,
        "curve_length_ft": 261.799,
        "tangent_length_ft": 133.975
    },
    "meta": {
        "timestamp": "2026-06-07T08:18:03.468Z",
        "request_id": "d1869c23-d0ad-40e1-ad91-5a172f232c87"
    },
    "status": "ok",
    "message": "Stations",
    "success": true
}