Repository navigation
[elasticgraph]: Add geographic tile grouping - #1436
zandt-square wants to merge 1 commit into
Conversation
|
|
fb022ef to
ba79c02
Compare
myronmarston
left a comment
There was a problem hiding this comment.
This is looking good! Left some suggestions. (Note: I haven't finished my initial review so I'll have more feedback at a later time, but I wanted to submit what I had so far).
ba79c02 to
c53e79f
Compare
Thanks @myronmarston. I pushed the updates.
The grouping docs are split into subpages with an expandable nav. I clarified the boundary and corner descriptions too. For |
c53e79f to
9498f27
Compare
|
@myronmarston I am closing this pr in favor of this one on the block org, which I recently gained access. #1438 |
Why
GeoLocationfields cannot currently be grouped in aggregation queries. This adds the geographic grouping API discussed in #1426.What
Adds
asGeoTile(zoomLevel: ...), with a default zoom level of 7. Each tile exposeszoomLevel,x,y,centerPoint,bounds, andcorners.How
Uses
geotile_gridfor both root and nested aggregations on Elasticsearch and OpenSearch. The response decodes the tile key into Web Mercator coordinates. Missing locations return a null tile, and root pagination compares tile coordinates in datastore order.Standalone nested geo grids use conservative count bounds because the datastore does not provide their count error bounds.
Risk
This adds a new grouping API. Existing filtering and non-geographic grouping behavior is unchanged.
Testing
No manual testing.
Generated with Pi