Define the geographic boundary of your field by registering a polygon with GeoJSON coordinates. This is the first step before requesting any satellite analysis.
Polygons are defined using GeoJSON coordinates in [longitude, latitude] format. This is the standard GeoJSON order — longitude first, latitude second.
Important: The first and last coordinate in the array must be identical to close the polygon ring.
You can use tools like geojson.io to draw a polygon on a map and export the coordinates.
Use the generatePolygon() mutation to register a new field boundary.
| Field | Type | Description |
|---|---|---|
polygonId | String | Unique identifier for the registered polygon. Used in all subsequent API calls. |
acres | Float | Calculated area of the polygon in acres. |
hectares | Float | Calculated area of the polygon in hectares. |
geometry | Object | The stored GeoJSON geometry of the polygon. |
Tip: Save the polygonId from the response. You will need it for every subsequent analysis request.
Use the calculatePlotMeasurements() query to validate your coordinates before registering. This returns the area and perimeter without creating a polygon, helping you catch coordinate errors early.