Skip to content
GET /v1/elevation

Elevation and grade at a station

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/verticalcurve-api

It works. Grab an API key and use it in your project.

Get an API key

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

Example response

A real response from this endpoint, captured by the latest 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
}