Background
Hey everyone, I recently discovered Google's open source S2 library
https://github.com/google/s2geometry
I am currently programming an application that requires finding K closest points, given an original target point. Currently I am using PostgreSQL with geospatial indexes on columns containing latitude/longitude values to achieve this - However, I am looking for alternatives when S2 caught my eye.
Questions
I am rather unfamiliar with the library, and I have some questions regarding it.
1) Is it possible to find K closest points using the S2 library
2) How fast would the query in S2 be vs Geospatial indexes (superior/inferior/same/etc)