query_dataset
Query Glendale GIS datasets with attribute filters, proximity, or bounding box to locate zoning, parcels, schools, or hazard zones.
Instructions
Search one dataset with attribute filters, a location (near) or a bounding box, with paging. Use it for questions the dedicated tools don't cover: zoning or the parcel at a location, schools of a type, bus stops on a route, all dams affecting an area. Results carry total, next_offset for the next page, and a ref for each feature. Geometry is off by default to save context. Parcels are queried live from the city; everything else comes from the offline snapshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | No | Spatial filter: [min_lon, min_lat, max_lon, max_lat] | |
| near | No | Spatial filter: {"lat", "lon", "radius_m"} (radius up to 5000 m). radius_m 0 returns features containing the point, e.g. the zoning or parcel at a location. Results are sorted by distance. | |
| limit | No | Page size, 1-100 | |
| fields | No | Attributes to return (default all); the object ID is always kept | |
| offset | No | Skip this many results (paging) | |
| dataset | Yes | Dataset id from list_datasets | |
| filters | No | Attribute conditions, all of which must match. Each is {"field", "op", "value"}; op is eq, ne, lt, lte, gt, gte, in (value is a list), contains, starts_with, is_null or not_null. Field names are case-sensitive (see describe_dataset); text comparisons ignore case. Example: [{"field": "School_typ", "op": "eq", "value": "High School"}] | |
| include_geometry | No | Return GeoJSON geometry; very large shapes are left out |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | Yes | ||
| notes | No | ||
| total | Yes | Features matching the query | |
| offset | Yes | ||
| dataset | Yes | ||
| features | Yes | ||
| returned | Yes | ||
| next_offset | Yes | Offset for the next page; null on the last |