Geo Polygon
geo_polygonAnalyse GeoJSON polygons (Polygon, MultiPolygon, Feature or FeatureCollection): geodesic area (m², km², ha, acres; same spherical formula as Turf.js), perimeter, area-weighted centroid, bounding box, validity report (unclosed or short rings, self-intersections, RFC 7946 winding order), point-in-polygon tests for up to 1,000 points honouring holes and edges, convex hull and optional Douglas-Peucker simplification to a tolerance in metres. Offline. Price: $0.002 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/geo-polygon
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "geo_polygon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hull | No | Return the convex hull (of the geometry, or of points when no geometry is given) | |
| points | No | Points to test, each [lon, lat] | |
| geometry | No | GeoJSON Polygon / MultiPolygon / Feature / FeatureCollection ([lon, lat] order) | |
| simplify | No | Douglas-Peucker tolerance in metres (returns simplified geometry) |