The spatial query endpoint returns current ground truth observations from Vangrid edge nodes within your specified area of interest (AOI). Use it to retrieve verified spatial intelligence on demand for any authorized geographic region.Documentation Index
Fetch the complete documentation index at: https://docs.vangrid.io/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Request
Headers
| Header | Value |
|---|---|
Authorization | Bearer your-api-key |
Content-Type | application/json |
Body parameters
GeoJSON geometry defining the area of interest. Supports
Point, Polygon, and MultiPolygon types. Maximum polygon area is 100 km².Minimum ground truth confidence score (0.0–1.0). Observations below this threshold are excluded. Defaults to
0.5.Filter by observation type. Possible values:
obstacle, occupancy, change, structure, vehicle, vegetation. If omitted, all types are returned.Maximum age of observations in seconds. Defaults to
60. Use 0 for observations captured within the last second only.Maximum number of observations to return. Defaults to
100, maximum 1000.Example request
Response
Response fields
Unique identifier for this query, useful for support requests.
Number of edge nodes that contributed observations to this response.
Array of ground truth observation objects.
Example response
Error responses
| Status | Error code | Description |
|---|---|---|
400 | invalid_geometry | AOI is not valid GeoJSON |
400 | aoi_too_large | AOI polygon exceeds 100 km² |
401 | unauthorized | Missing or invalid API key |
403 | region_not_authorized | AOI outside authorized regions |
429 | rate_limit_exceeded | Too many requests |