public int getLevelForDistance(double dist) {if (dist == 0)return maxLevels;for (int i = 0; i < maxLevels-1; i++) {if(dist > levelW[i] && dist > levelH[i]) {return i+1;}}return maxLevels;}

public int getLevelForDistance ( double dist ) { if ( dist == 0 ) return maxLevels ; for ( int i = 0 ; i < maxLevels - 1 ; i ++ ) { if ( dist > levelW [ i ] && dist > levelH [ i ] ) { return i + 1 ; } } return maxLevels ; }
public override int GetLevelForDistance(double dist){if (dist == 0){return m_maxLevels;}int level = GeohashUtils.LookupHashLenForWidthHeight(dist, dist);return Math.Max(Math.Min(level, m_maxLevels), 1);}
