public int getLevelForDistance(double dist) {if (dist == 0)return maxLevels;final int level = GeohashUtils.lookupHashLenForWidthHeight(dist, dist);return Math.max(Math.min(level, maxLevels), 1);}
protected internal override int GetLevelForDistance(double degrees){var grid = new GeohashPrefixTree(m_ctx, GeohashPrefixTree.MaxLevelsPossible);return grid.GetLevelForDistance(degrees);}