pyinterp.geohash.int64.neighbors

pyinterp.geohash.int64.neighbors(hash: SupportsInt, precision: SupportsInt = 64) Annotated[numpy.typing.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].