VelocityDB.geohash.util.TwoGeoHashBoundingBox.WithBitPrecision C# (CSharp) Method

WithBitPrecision() public static method

public static WithBitPrecision ( BoundingBox bbox, int numberOfBits ) : TwoGeoHashBoundingBox
bbox BoundingBox
numberOfBits int
return TwoGeoHashBoundingBox
    public static TwoGeoHashBoundingBox WithBitPrecision(BoundingBox bbox, int numberOfBits)
    {
      GeoHash bottomLeft = GeoHash.WithBitPrecision(bbox.MinLat, bbox.MinLon, numberOfBits);
      GeoHash topRight = GeoHash.WithBitPrecision(bbox.MaxLat, bbox.MaxLon, numberOfBits);
      return new TwoGeoHashBoundingBox(bottomLeft, topRight);
    }