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.
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 |