Closed zacharyDez closed 1 month ago
I think both make sense; I did something similar here when creating h3 indices although I only cared about polygons. https://github.com/worldbank/DECAT_Space2Stats/blob/main/src/h3_helper.py#L49
I think having the option for both would be interesting as the points will make for much lighter output files while maintaining options for vizualization
It may be helpful for API users to obtain a response from the
summary
endpoint that includes a geometry column. This would remove the need for a user to write custom code that adds the geometry, such as:We could set the default to
None
, and support two other options in the endpoint:Polygon
: returns a polygon geometry of the hexagonPoint
: returns a point geometry of the centroid of the hexagon@bpstewar @andresfchamorro; I look forward to your feedback regarding your preferences. Lift is relatively small but I'll wait on your feedback before working on implementation.