/v1/average-end-area
Volume between two cross-sections
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}