VelocityDB.geohash.util.TwoGeoHashBoundingBox.WithBitPrecision C# (CSharp) Метод

WithBitPrecision() публичный статический Метод

public static WithBitPrecision ( BoundingBox bbox, int numberOfBits ) : TwoGeoHashBoundingBox
bbox BoundingBox
numberOfBits int
Результат 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);
    }