nearby
Find features from a layer that are near a given point, nearest first, within radius_km. Reads the layer's parquet bounding boxes and ranks features by distance to their centres; works for points, polygons and lines. Returns the true count within the radius plus the nearest limit. Example: 'reservoirs near Bengaluru' -> layer_id: 'wris_reservoirs', lat: 12.97, lng: 77.59, radius_km: 50.
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": {
"layer_id": "<layer_id>",
"lat": "<lat>",
"lng": "<lng>"
},
"name": "nearby"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | Center point latitude | |
| lng | Yes | Center point longitude | |
| limit | No | Max results (default 20) | |
| layer_id | Yes | Layer to search for nearby features | |
| radius_km | No | Search radius in kilometres (default 25, max 200) |