Aggregate facility/location data
Returns DB-side facet aggregation (GROUP BY + COUNT) over fact_point, for example “how many records per committee”. source and group_by are required. group_by must be category or an attribute key whitelisted for the source. Optional category, attr.<key>=<value>, name_contains, address_contains, and the bounding-box set pre-filter records before aggregation. Buckets are ordered by count descending and capped at limit; truncated flags when more buckets exist.
Query Parameters
Source ID to query.
1Aggregation axis: category or an attribute key whitelisted for the source.
1Pre-filter by exact point category.
1Pre-filter by name substring (same semantics as on /api/v1/points).
1Pre-filter by address substring (same semantics as on /api/v1/points).
1South edge latitude of the bounding box (supply all four bbox parameters).
-90 <= x <= 90North edge latitude of the bounding box.
-90 <= x <= 90West edge longitude of the bounding box.
-180 <= x <= 180East edge longitude of the bounding box.
-180 <= x <= 180Maximum number of buckets to return. Defaults to 100.
1 <= x <= 1000