spatial_query
Query cached geospatial data using point, bounding box, or radius to find features that match the spatial criteria.
Instructions
Run spatial queries against cached geospatial data.
Args: resource_id: Resource ID (must be cached via load_geodata) operation: "contains_point", "within_bbox", or "within_radius" latitude: Latitude for point queries (-90 to 90) longitude: Longitude for point queries (-180 to 180) radius_km: Radius in kilometers (for within_radius, must be > 0) bbox: Bounding box as [min_lng, min_lat, max_lng, max_lat] (for within_bbox) limit: Max results
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": {
"resource_id": "<resource_id>",
"operation": "<operation>"
},
"name": "spatial_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource_id | Yes | ||
| operation | Yes | ||
| latitude | No | ||
| longitude | No | ||
| radius_km | No | ||
| bbox | No | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |