pyinterp.core.geohash.int64.neighbors

pyinterp.core.geohash.int64.neighbors(hash: int, precision: int = 64) numpy.ndarray[numpy.uint64[8, 1]]

Returns all neighbors hash clockwise from north around northwest at the given precision.

Parameters:
  • hash – Geohash code.

  • precision – Required accuracy.

Returns:

Geohash codes.

Raises:

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