I'm just wondering if there is any plans to add functions for the S2 geo library into BigQuery?
Seems like surely lots of people have lat-long data in BQ - some s2 functions to got to cells and back etc would be super useful surely - happy to file a feature request if there is not already one.
Best links i could find as fyi:
http://blog.christianperone.com/2015/08/googles-s2-geometry-on-the-sphere-cells-and-hilbert-curve/ https://godoc.org/github.com/golang/geo/s2 https://docs.google.com/presentation/d/1Hl4KapfAENAOf4gv-pSngKwvS_jwNVHRPZTTDzXXn6Q/view
I do see some javascript libraries but not sure if they can be used in UDF's
https://www.npmjs.com/package/s2-geometry https://github.com/mapbox/node-s2
I wonder is it the sort of thing that one could do just in UDF's?