I know that there are a lot of ways to do geo proximity searches using databases, but if I want to quickly geo search a large array of [lat,lng] in memory, what's the most efficient data structure to store and search that data? Is there some sort of in memory r-tree library I should be using, or should I just iterate through for all but the largest of arrays?
The geo searches I would be doing would be closest to a point and a within radius.