# Plants

This API returns the detected individual plants or trees within a specified parcel of land. Here's a breakdown of how the API works and what the response structure means:

* **`features`**: An array of feature objects, where each feature represents a detected plant or tree. The structure of a feature includes:
  * **`type`**: Defines the object as a feature.
  * **`geometry`**: Contains geometric data about the feature. Here, it's a `Point`, indicating the location of the plant with latitude and longitude coordinates.
  * **`properties`**: A set of additional properties for the feature. In this context, it contains:
    * **`shape`**: Detailed geometric shape of the detected plant area, described as a polygon with coordinates that outline the plant's spatial extent.
    * **`parcel`**: An identifier for the parcel of land where the plant is located. This is useful for associating detected plants with specific parcels in large areas or farms.
    * **`crop`**: An identifier that associates the detected plant with the crop rotation. This could be used to distinguish between different types of crops, trees, or other vegetation.

## GET /api/plants/

>

```json
{"openapi":"3.0.3","info":{"title":"Graniot API","version":"0.0.1"},"paths":{"/api/plants/":{"get":{"operationId":"Plants List","parameters":[{"name":"search","required":false,"in":"query","description":"A search term.","schema":{"type":"string"}}],"tags":["Plants"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlantList"}}},"description":""}}}}},"components":{"schemas":{"PlantList":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/GisFeatureCollectionEnum"},"features":{"type":"array","items":{"$ref":"#/components/schemas/Plant"}}}},"GisFeatureCollectionEnum":{"enum":["FeatureCollection"],"type":"string","description":"* `FeatureCollection` - FeatureCollection"},"Plant":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/GisFeatureEnum"},"id":{"type":"integer","readOnly":true},"geometry":{"type":"object","properties":{"type":{"type":"string","enum":["Point"]},"coordinates":{"type":"array","items":{"type":"number","format":"float"},"minItems":2,"maxItems":3}}},"properties":{"type":"object","properties":{"area":{"type":"string","readOnly":true},"key":{"type":"string","format":"uuid","readOnly":true},"shape":{"type":"object","properties":{"type":{"type":"string","enum":["Polygon"]},"coordinates":{"type":"array","items":{"type":"array","items":{"type":"array","items":{"type":"number","format":"float"},"minItems":2,"maxItems":3},"minItems":4}}},"nullable":true},"info":{"nullable":true},"created":{"type":"string","format":"date-time","readOnly":true},"modified":{"type":"string","format":"date-time","readOnly":true},"parcel":{"type":"integer","nullable":true},"crop":{"type":"integer","nullable":true}}}}},"GisFeatureEnum":{"type":"string","enum":["Feature"]}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.graniot.com/reference/api-reference/parcels/plants.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
