pyinterp.geohash.transform

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

Transforms the given codes from one precision to another. If the given precision is higher than the precision of the given codes, the result contains a zoom in, otherwise it contains a zoom out.

Parameters:
  • hash – GeoHash codes.

  • precision – Required accuracy. Defaults to 1.

Returns:

GeoHash codes transformed.

Raises:

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