/v1/elevation
Elevation and grade at a station
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
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_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}