resources/geoprimitives/POST /v1/geometry/area
POSTorigin reachablediscovery only

geoprimitives /v1/geometry/area APIPOST /v1/geometry/area · x402 API by geoprimitives

Measure how much ground a polygon covers, in square metres and square kilometres, with holes subtracted and every part of a MultiPolygon summed. Use it after POST /v1/geometry/intersect to size an overlap, or on a boundary you already hold. Points and lines contribute zero rather than an error, so a mixed collection is safe to send. Not turf's area, which applies the spherical-excess formula to geodetic latitudes on a 6371008.8 m sphere and comes out 0.45% high at the equator and 0.85% low at 80 deg latitude. This maps latitude to authalic latitude on the WGS 84 authalic sphere first, landing within 5e-3% of GeographicLib's geodesic area on parcel-scale rings and converging to 1e-6% as ring edges are densified. Ring edges are treated as straight in longitude/latitude, per RFC 7946 and turf

https://api.geoprimitives.dev/v1/geometry/area

What does this x402 API do?

geoprimitives /v1/geometry/area API. This is an x402-gated POST API resource from geoprimitives. TOLL·402 did not invoke this route automatically because doing so was not considered safe. No normalized USD price is recorded; the listing names Base. No settled paid call has been verified.

Published price
No normalized USD price is recorded
Networks
Base
Latest evidence
TOLL·402 did not invoke this route automatically because doing so was not considered safe
Resource ID
86c3a082a66ca7ba2703ef20
USE THIS RESOURCE

Start with a quote-only recipe. Payment signing stays in your project.

CODE
AI CODING TOOLS
quote-check.ts
const response = await fetch("https://api.geoprimitives.dev/v1/geometry/area", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
  "type": "http",
  "method": "POST",
  "bodyType": "json",
  "bodyFieldNames": [
    "geojson"
  ],
  "pathParamNames": [],
  "queryParamNames": []
}),
});

console.log(response.status);
console.log(Object.fromEntries(response.headers));
console.log((await response.text()).slice(0, 1000));

// A valid 402 is a quote, not a completed paid call.

Review the provider input schema before running this non-read-only method. No payment code is included.

STATUS HISTORY

  1. Exact route checked

    not safely testable · potentially-mutating-method:POST

  2. Origin reachable

    HEAD https://api.geoprimitives.dev/ returned 200.

  3. Observed in cdp-bazaar

    The registry record was observed and retained with provenance.

What evidence supports this listing?

cdp-bazaarobserved 2026-08-25 · open source record ↗
origin checkHEAD https://api.geoprimitives.dev/ → 200 on 2026-08-25
route quotenot invoked automatically · potentially-mutating-method:POST · 2026-08-25

Each record has an exact-route quote outcome. Unresolved templates and potentially mutating methods are labeled instead of being invoked without provider-specific test input. A quote is still separate from a settled paid call. Read the discovery and verification methodology →

Which networks and payment options does it accept?

The normalized listing price is No normalized USD price is recorded. Raw protocol requirements remain visible below for implementation and audit use.

Baseexact10000 atomic · 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
geoprimitives POST /v1/geometry/area · 86c3a0 x402 API · TOLL·402