Sunburnt Solr spatial filter support
I’ve added spatial filtering to the sunburnt library. The feature is now available with filter_spatial function.
Example usage
1 2 3 4 5 |
from sunburnt import SolrInterface SOLR_URL = 'http://some.url:8983/solr/' _s = SolrInterface(SOLR_URL) _s.query('*') _s.filter_spatial(latlon=(52.3702157, 4.8951679), distance=10) |
Currently this will use bbox by default. I’m planning to add more features to it in the future but so far it fits my needs. Let me know if you … Continue reading