My simple web application (WSGI, Python) supports text queries to search for items in a database. Now I would like to expand this to allow queries such as "find all items within 1 mile of {lat, long}".
Of course, hard work if efficiency is a problem, so I am thinking of a dedicated external module that does indexing for geo-coordinates - sort of like Lucene for text.
I assume that such a common component already exists, but have not found anything yet. Any help would be greatly appreciated.
source share