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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"points": "<points>",
"dataset": "<dataset>"
},
"name": "spatial_join"
}
}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 |