pyinterp.core.geohash.bounding_boxes

pyinterp.core.geohash.bounding_boxes(box: Optional[pyinterp.core.geodetic.Box] = None, precision: int = 1) numpy.ndarray

Returns all geohash codes contained in the defined bounding box.

Parameters
  • box (pyinterp.geohash.Box, optional) – Bounding box.

  • precision (int, optional) – Required accuracy.

Returns

Geohash codes.

Return type

numpy.ndarray

Raises

ValueError – If the given precision is not within [1, 12].