pyinterp.core.geohash.int64.decode

pyinterp.core.geohash.int64.decode(hash: Annotated[numpy.typing.NDArray[numpy.uint64], '[m, 1]'], precision: SupportsInt = 64, round: bool = False) tuple[Annotated[numpy.typing.NDArray[numpy.float64], '[m, 1]'], Annotated[numpy.typing.NDArray[numpy.float64], '[m, 1]']]

Decode hash into a geographic points with the given precision.

Parameters:
  • hash – GeoHash.

  • precision – Required accuracy.

  • round – If true, the coordinates of the point will be rounded to the accuracy defined by the GeoHash.”

Returns:

Longitudes/latitudes of the decoded points.

Raises:

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