/v1/elevation
Elevation and grade at a station
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/verticalcurve-api/v1/elevation" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/verticalcurve-api/v1/elevation", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/verticalcurve-api/v1/elevation");
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/verticalcurve-api/v1/elevation",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"note": "Elevation on the curve = PVC elevation + (g1/100)·x + (A/(200·L))·x², the parabola, with x measured along the road from the PVC. The instantaneous grade is g1 + (A/L)·x, which sweeps smoothly from g1 to g2 — that steady change of grade is what makes the ride and the sight line comfortable. Set up the road profile by evaluating this at each station.",
"inputs": {
"length_ft": 400,
"grade_in_pct": 3,
"grade_out_pct": -2,
"pvc_elevation_ft": 94,
"distance_from_pvc_ft": 240
},
"elevation_ft": 97.6,
"grade_at_point_pct": 0
},
"meta": {
"timestamp": "2026-06-07T08:18:02.851Z",
"request_id": "1ad0d206-9a3e-4916-be3a-466e6b34be18"
},
"status": "ok",
"message": "Elevation",
"success": true
}