I haven't used the module in 8.2, but in 8.1 I had to change LuceneSearchWithSpatialContext.cs and remove the following constructor
protected LuceneSearchWithSpatialContext(ILuceneProviderIndex index, CreateSearcherOption options = CreateSearcherOption.Writeable, SearchSecurityOptions securityOptions = SearchSecurityOptions.EnableSecurityCheck) :base(index,options,securityOptions)
{
Assert.ArgumentNotNull(index, "index");
this.index = index;
this.settings = this.index.Locator.GetInstance<IContentSearchConfigurationSettings>();
}
Update the Sitecore.ContentSearch.Spatial.config:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<contentSearchSpatial>
<IncludeTemplates>
<!-- * Include your location template details, like template id, latitude field name and longitude field name
* You can include multiple templates
-->
<!--<Template id="{TEMPLATE ID}" LatitudeField="[Latitude Field Name]" LongitudeField="[Longitude Field Name]"></Template>-->
</IncludeTemplates>
</contentSearchSpatial>
<contentSearch>
<indexConfigurations>
<spatialLuceneIndexConfiguration ref="contentSearch/indexConfigurations/defaultLuceneIndexConfiguration" type="Sitecore.ContentSearch.LuceneProvider.LuceneIndexConfiguration, Sitecore.ContentSearch.LuceneProvider">
<documentBuilderType>Sitecore.ContentSearch.Spatial.Indexing.LuceneSpatialDocumentBuilder, Sitecore.ContentSearch.Spatial</documentBuilderType>
</spatialLuceneIndexConfiguration>
</indexConfigurations>
</contentSearch>
</sitecore>
</configuration>
Your index should use the following configuration:
<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<contentSearch>
<configuration type="Sitecore.ContentSearch.ContentSearchConfiguration, Sitecore.ContentSearch">
<indexes hint="list:AddIndex">
<index id="index_id" type="Sitecore.ContentSearch.Spatial.Provider.Lucene.LuceneIndexWithSpatial, Sitecore.ContentSearch.Spatial">
...
</index>
</indexes>
</configuration>
</contentSearch>
</sitecore>
</configuration>