> I don’t actually know how i could cache the data to perform this sort of > mongoDB query ($geoWithin) on cached entries?!
I was thinking of an API that would allow you to perform geoWithin queries on an in-memory collection of geoJSON polygons. Essentially an in-memory geospatial database of sorts. I have no idea if one exists, but if it does, that would most definitely be the fastest way to do those lookups. Something else came to my mind after I wrote the last post. I had very good experience in using Elasticsearch for this very same purpose, and while looking into solutions in this space at the time we were implementing our solutions a lot of people were recommending Postgresql based solutions. Those might be worth looking into as well. -TPP
