/v1/stations
PC and PT stations from the PI
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/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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten 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
}