Let's say I have a list of restaurants and I have the location of a customer that's looking for restaurants that are nearby. How could I use S2?
From my understanding without S2, I would maintain my own Quad Tree that has all the restaurants and then I would take the latitude and longitude of my customer and query my Quad Tree to find the node and neighbor Quad Tree nodes.
How would S2 fit into this picture? Would it replace the need for me to maintain my own Quad Tree?
My understanding of S2 is that under the hood there's Quad Trees and Hilber space-filling curves which given a latitude and longitude can provide a 64 bit cell ID that identifies the node in the Quad Tree that the latitude and longitude belong to.