{"uid":"cap_s7Prnr_dhJ2IAUc7-jAf3","slug":"saylor-innovations-polygon-geometry-calculator-342d215d","name":"Saylor Innovations Polygon Geometry Calculator","description":"Polygon area in km2, hectares, acres and square miles from lat,lon vertices, plus perimeter, centroid, bounding box and a point-in-polygon test","url":"https://saylorinnovations.com/api/geo/polygon?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["points"],"properties":{"points":{"type":"string","description":"Vertices written lat,lon;lat,lon;... (3-500)"},"test_point":{"type":"string","description":"optional lat,lon to test whether it lies inside"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["vertices","area_km2","perimeter_km","centroid"],"properties":{"note":{"type":"string","description":"Caveat or context for reading the result"},"source":{"type":"string","description":"Data source the values come from"},"area_km2":{"type":"number","description":"Area km2"},"centroid":{"type":"object","description":"Planar centroid latitude and longitude"},"vertices":{"type":"number","description":"Number of polygon vertices"},"area_acres":{"type":"number","description":"Area acres"},"test_point":{"type":["object","null"],"properties":{"lat":{"type":["number","null"],"description":"Latitude in decimal degrees"},"lon":{"type":["number","null"],"description":"Longitude in decimal degrees"},"inside":{"type":["boolean","null"],"description":"True when the test point is inside the polygon"}},"description":"Test point"},"bounding_box":{"type":"object","description":"Bounding box"},"perimeter_km":{"type":"number","description":"Perimeter, in kilometres"},"area_hectares":{"type":["number","null"],"description":"Area hectares"},"area_sq_miles":{"type":["number","null"],"description":"Area sq miles"},"perimeter_miles":{"type":["number","null"],"description":"Perimeter miles"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FzCsSJYw5eKyZis7O98kr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes area (km², hectares, acres, sq miles), perimeter, centroid, and bounding box for a polygon defined by lat/lon vertices, with optional point-in-polygon test","exampleAgentPrompt":"Can you calculate the area, perimeter, and centroid of the land parcel with these vertices: 40.7128,-74.0060; 40.7138,-74.0050; 40.7125,-74.0040; 40.7115,-74.0055 — and also tell me if the point 40.7122,-74.0052 falls inside it?","exampleUseCases":[{"title":"Farm field area measurement","prompt":"I have the GPS boundary of a farm field — vertices are 38.9500,-95.2500; 38.9520,-95.2480; 38.9510,-95.2460; 38.9490,-95.2470; 38.9485,-95.2495. Can you tell me the area in acres and hectares, and the perimeter in miles?"},{"title":"Real estate parcel centroid lookup","prompt":"I need the centroid and bounding box for this property boundary: 34.0522,-118.2437; 34.0535,-118.2420; 34.0528,-118.2405; 34.0510,-118.2415; 34.0508,-118.2440. What are the coordinates of the center point?"},{"title":"Point-in-polygon check for delivery zone","prompt":"Check whether the location 51.5074,-0.1278 is inside our delivery zone polygon with corners at 51.5100,-0.1350; 51.5120,-0.1200; 51.5050,-0.1180; 51.5030,-0.1320."}],"resultDescription":"Returns a JSON object with the polygon vertex count, area in km², hectares, acres, and square miles, perimeter in km and miles, planar centroid lat/lon, bounding box coordinates, and — if a test point was provided — an object containing the test lat/lon and a boolean indicating whether the point is inside the polygon. May also include source and note fields for context.","failureModes":["Fewer than 3 vertices provided — polygon cannot be formed","Malformed points string (wrong separator or missing coordinate) — parse error","Points string exceeds 500 vertices — rejected","Invalid lat/lon values (out of range) — computation error","Missing required 'points' query parameter — 400 bad request","Payment not processed — 402 payment required"],"whenToPreferThis":"Choose this endpoint when you need geospatial polygon metrics — area, perimeter, centroid, bounding box — from raw lat/lon coordinate lists, especially when you also need a point-in-polygon containment test in the same call. It supports multiple area units (km², hectares, acres, sq miles) simultaneously, making it ideal for land surveying, property analysis, delivery zone verification, and GIS workflows where you don't want to spin up a full GIS library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T19:23:07.528Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-polygon-geometry-calculator-342d215d"}