Intersect Polygons
intersect_toolCalculate the intersection geometry of two polygons to identify their shared area for coverage, service, or zone overlap analysis. Returns null when no overlap occurs; works offline.
Instructions
Find the intersection geometry of two polygons — the area they share in common. Useful for coverage overlap analysis, finding shared service areas, or zone overlap. Returns null geometry if the polygons do not overlap. Works offline without API calls. INPUT SHAPE: polygon1 and polygon2 are each an array of rings; each ring is an array of [lng, lat] pairs. When chaining with isochrone_tool, extract feature.geometry.coordinates from each isochrone Feature (with polygons=true).
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": {
"polygon1": "<polygon1>",
"polygon2": "<polygon2>"
},
"name": "intersect_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| polygon1 | Yes | First polygon | |
| polygon2 | Yes | Second polygon |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| geometry | Yes | GeoJSON geometry of the intersection, or null if no overlap | |
| intersects | Yes | Whether the two polygons overlap | |
| mapboxRender | No | Map-payload reference for `render_map_tool`. Surfaced so the LLM can chain the next call without re-emitting geometry. |