Class GeohashPrefixTree
  
  A SpatialPrefixTree based on
Geohashes.
Uses Spatial4n.Core.Util.GeohashUtils to do all the geohash work.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
 
  
  
    Inheritance
    System.Object
    
    GeohashPrefixTree
   
  
    Inherited Members
    
    
    
    
    
    
    
    
    
    
    
    
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
   
  
  Assembly: Lucene.Net.Spatial.dll
  Syntax
  
    public class GeohashPrefixTree : SpatialPrefixTree
   
  Constructors
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GeohashPrefixTree(SpatialContext, Int32)
  
  
  Declaration
  
    public GeohashPrefixTree(SpatialContext ctx, int maxLevels)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Spatial4n.Core.Context.SpatialContext | 
        ctx | 
         | 
      
      
        | System.Int32 | 
        maxLevels | 
         | 
      
    
  
  Properties
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  MaxLevelsPossible
  Any more than this and there's no point (double lat & lon are the same).
 
  
  Declaration
  
    public static int MaxLevelsPossible { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetCell(IPoint, Int32)
  
  
  Declaration
  
    protected override Cell GetCell(IPoint p, int level)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Spatial4n.Core.Shapes.IPoint | 
        p | 
         | 
      
      
        | System.Int32 | 
        level | 
         | 
      
    
  
  Returns
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetCell(Byte[], Int32, Int32)
  
  
  Declaration
  
    public override Cell GetCell(byte[] bytes, int offset, int len)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Byte[] | 
        bytes | 
         | 
      
      
        | System.Int32 | 
        offset | 
         | 
      
      
        | System.Int32 | 
        len | 
         | 
      
    
  
  Returns
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetCell(String)
  
  
  Declaration
  
    public override Cell GetCell(string token)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        token | 
         | 
      
    
  
  Returns
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetLevelForDistance(Double)
  
  
  Declaration
  
    public override int GetLevelForDistance(double dist)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Double | 
        dist | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  Overrides