4b Get Plots
โถStep 4b: Get Plots
Retrieve plot locations with polygon geometries for map rendering. Plots are nested within facility areas and represent individual production zones.
โถWhat this step does
It lists the plot records from this upload, scoped by
filter[assets.task_id]=eq:{task-id}, with a larger page[size] since plots
are typically far more numerous than facilities. Each plot carries its
geometry and its facility_id, so the response is both the fine-grained
polygon layer for the map and the key set that plot-level deforestation
metrics join against.
โถWhy it's needed
Facilities (4a) give the coarse footprint; plots are the individual production
zones where compliance is actually assessed. Without them the map has no
plot-level detail and there's nothing to colour by per-plot compliance status.
Grouping plots under their facility_id is also what lets the visualization
expand a facility card into its constituent plots.
โถRequest
GET /locations/plots?filter[assets.task_id]=eq:{task-id}