{"uid":"cap_f9SVuU8CuTE94bLeLPakP","slug":"halowerk-polygon-area-centroid-calculator-c36785fd","name":"Halowerk Polygon Area & Centroid Calculator","description":"Calculates planar polygon area and centroid in caller-declared coordinate units. Missing facts are returned as null and named in unavailable_fields where applicable. Derived values disclose their method; source-backed values disclose source, time window and age. ","url":"https://geo.halowerk.com/v1/polygon-ops","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"polygon":{"type":"array","items":{"type":"object","required":["x","y"],"properties":{"x":{"type":"number","maximum":1000000000000,"minimum":-1000000000000,"description":""},"y":{"type":"number","maximum":1000000000000,"minimum":-1000000000000,"description":""}},"additionalProperties":false},"maxItems":100000,"minItems":3}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ynszihJJsXJu7YL_rW3cH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the planar area and centroid of a polygon defined by a sequence of (x, y) coordinate pairs in caller-declared units","exampleAgentPrompt":"Calculate the area and centroid of this polygon: the vertices are (0,0), (10,0), (10,5), (5,8), (0,5) — they're in meters.","exampleUseCases":[{"title":"Land parcel area calculation","prompt":"I have a land parcel defined by these coordinates in meters: (100,200), (400,200), (450,350), (250,500), (80,350) — can you calculate its area and find the center point?"},{"title":"CAD shape centroid for manufacturing","prompt":"Here are the vertices of a part outline in millimeters: (0,0), (50,0), (50,30), (30,50), (0,50) — I need to know the area and centroid so I can figure out where to drill the mounting hole."},{"title":"Game map region analysis","prompt":"These are the corners of a game map zone in world units: (1200,800), (3400,750), (3500,2100), (2000,2500), (900,2000) — what's the total area and the center point of the region?"}],"resultDescription":"Returns the computed planar area of the polygon and the (x, y) coordinates of its centroid in the same units as the input. Any values that could not be computed are returned as null and listed in an unavailable_fields array. Derived values include a disclosure of the calculation method used.","failureModes":["Polygon with fewer than 3 vertices returns validation error","Coordinates outside ±1,000,000,000,000 range rejected","Self-intersecting or degenerate polygons may produce unexpected area values","Exceeding 100,000 vertex limit returns error","Malformed coordinate objects missing x or y fields rejected"],"whenToPreferThis":"Choose this endpoint when you need fast, deterministic planar polygon area and centroid computation from raw coordinate data without any geographic projection assumptions. Ideal for coordinate systems other than WGS84 (e.g. CAD units, game world units, local planar projections) where you supply your own coordinate frame. Prefer this over GIS-specific tools when you don't need reprojection and want transparent method disclosure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:41:31.001Z","isFirstParty":false}