spatial_join
Enrich multiple coordinates with polygon attributes in one batch. For each point, returns properties of the polygon containing it.
Instructions
Enrich a set of coordinates with attributes from a polygon dataset. For each point, returns the properties of the polygon it falls within. Like running check_location on multiple points at once, but more efficient. Requires an array of coordinate objects and a dataset id (UUID) from list_datasets. Call list_datasets first to get the id. Points need numeric coordinates, not addresses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | Yes | Array of {lat, lng} objects. Optional "properties" on each point are passed through in results. Max 100 points (free tier) or 1000 points (paid tier). | |
| dataset | Yes | Dataset id (UUID) from list_datasets |