Μετάβαση στο περιεχόμενο
GET /v1/elevation

Elevation and grade at a station

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/verticalcurve-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

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