Μετάβαση στο περιεχόμενο
GET /v1/average-end-area

Volume between two cross-sections

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

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

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

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

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

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

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

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

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

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