Hello
Thanks in advance for any guidance that can be provided. I have a the coordinates of a Polygon and would like to identify the set of S2 cells that best represents it (a la what this tool provides:
http://s2.sidewalklabs.com/regioncoverer/).
Right now, from the Py docs, there is guidance on how to get the S2 cells that cover a rectangle based on two LatLngs:
r = s2sphere.RegionCoverer()
p1 = s2sphere.LatLng.from_degrees(33, -122)
p2 = s2sphere.LatLng.from_degrees(33.1, -122.1)
cell_ids = r.get_covering(s2sphere.LatLngRect.from_point_pair(p1, p2))
I'd like to do something similar, but provide an array of coordinates instead, representing a Polygon and get the covering for that, from Py. Is that possible with current bindings?
Thanks again
Kuan