Vai al contenuto
GET /v1/average-end-area

Volume between two cross-sections

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/earthwork-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/earthwork-api/v1/average-end-area" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/earthwork-api/v1/average-end-area", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/earthwork-api/v1/average-end-area");
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/earthwork-api/v1/average-end-area",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "The average-end-area method: volume = the mean of the two end cross-section areas × the distance between them, ÷ 27 for cubic yards. It is the everyday earthwork-quantity method along a road or trench — sum it section by section down the alignment. It slightly over-estimates when the sections differ a lot (it assumes a linear change), which the prismoidal method corrects.",
        "inputs": {
            "area1_sqft": 100,
            "area2_sqft": 150,
            "distance_ft": 100
        },
        "volume_cubic_ft": 12500,
        "volume_cubic_yards": 462.96
    },
    "meta": {
        "timestamp": "2026-06-07T08:18:02.453Z",
        "request_id": "5f32590f-9c04-49ee-9fca-a9eaab6670c8"
    },
    "status": "ok",
    "message": "Average end area",
    "success": true
}