pyinterp.geohash.transform

Contents

pyinterp.geohash.transform#

pyinterp.geohash.transform(hash: numpy.ndarray, precision: SupportsInt = 1) numpy.ndarray#

Transform geohash codes between different precision levels.

Changes the precision of the given geohash codes. If the target precision is higher than the current precision, the result contains a zoom in; otherwise it contains a zoom out.

Parameters:
  • hash – Array of GeoHash codes.

  • precision – Target accuracy level. Defaults to 1.

Returns:

Array of GeoHash codes at the new precision level.

Raises:

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