Ir al contenido
GET /v1/prismoidal

Prismoidal (Simpson) volume

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/earthwork-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/earthwork-api/v1/prismoidal" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/earthwork-api/v1/prismoidal", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/earthwork-api/v1/prismoidal");
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/prismoidal",
    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 prismoidal (Simpson) method: volume = length ÷ 6 × (A₁ + 4·A_mid + A₂), using the true middle-section area, ÷ 27 for cubic yards. It is more accurate than average-end-area when the cross-section changes shape along the run — the difference is the 'prismoidal correction' — and is preferred for payment quantities on big jobs where the over-estimate would matter.",
        "inputs": {
            "length_ft": 100,
            "area1_sqft": 100,
            "area2_sqft": 150,
            "area_mid_sqft": 125
        },
        "volume_cubic_ft": 12500,
        "volume_cubic_yards": 462.96
    },
    "meta": {
        "timestamp": "2026-06-07T08:18:02.554Z",
        "request_id": "c67f2182-da1d-444b-8fb0-2027676a8137"
    },
    "status": "ok",
    "message": "Prismoidal",
    "success": true
}