Naar de inhoud
GET /v1/stations

PC and PT stations from the PI

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/horizontalcurve-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

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