pyinterp.core.geohash.int64.neighbors#
- pyinterp.core.geohash.int64.neighbors(hash: SupportsInt, precision: SupportsInt = 64) Annotated[numpy.typing.NDArray[numpy.uint64], '[8, 1]']#
Get all neighbors of a geohash code.
This function returns all eight neighboring geohash codes arranged clockwise starting from the north direction around the specified hash at the given precision level.
- Parameters:
hash – Geohash code.
precision – Required accuracy (bits).
- Returns:
Array of eight neighboring geohash codes.
- Raises:
ValueError – If the given precision is not within [1, 64].