query_near_point
Find features in a GIS layer within a set radius of a longitude/latitude point. Use it to locate nearby bus stops, sensors, or parcels; set radius to 0 for exact point-in-polygon lookups.
Instructions
Find features of a layer within a radius of a lon/lat point — 'what is near me'. Great for nearest bus stops, air sensors, construction sites, or the parcel/zoning at a location (use radius 0 with a polygon layer for an exact point-in-polygon hit). Returns rows sorted by nothing in particular; compute distance client-side if needed.
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": {
"lon": "<lon>",
"lat": "<lat>"
},
"name": "query_near_point"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | Latitude (WGS84), e.g. 40.1776 | |
| lon | Yes | Longitude (WGS84), e.g. 44.5126 | |
| limit | No | ||
| where | No | 1=1 | |
| layer_id | No | ||
| radius_m | No | Search radius in metres (0 = exact intersect) | |
| layer_key | No | ||
| out_fields | No | * | |
| service_path | No | ||
| return_geometry | No |