protected virtual Sitecore.ContentSearch.Linq.Nodes.QueryNode VisitWithinBounds(WithinBoundsNode node, LuceneQueryOptimizerState mappingState)
 {
     return(new WithinBoundsNode(node.Field, node.MinLatitude, node.MinLongitude, node.MaxLatitude, node.MaxLongitude, mappingState.Boost));
 }
        protected override Sitecore.ContentSearch.Linq.Nodes.QueryNode Visit(Sitecore.ContentSearch.Linq.Nodes.QueryNode node, LuceneQueryOptimizerState state)
        {
            if (node is WithinRadiusNode)
            {
                var withinRadiusNode = node as WithinRadiusNode;

                return(VisitWithinRadius(withinRadiusNode, state));
            }
            else if (node is WithinBoundsNode)
            {
                var withinBoundsNode = node as WithinBoundsNode;

                return(VisitWithinBounds(withinBoundsNode, state));
            }
            else
            {
                return(base.Visit(node, state));
            }
        }