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 (int) – Geohash code.

  • precision (int, optional) – Required accuracy.

Returns

Geohash codes.

Return type

numpy.ndarray

Raises

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