pyinterp.core.geohash.int64.decode

pyinterp.core.geohash.int64.decode(*args, **kwargs)

Overloaded function.

  1. decode(hash: int, precision: int = 64, round: bool = False) -> pyinterp.core.geodetic.Point

Decode a hash into a geographic point with the given precision.

Parameters
  • hash (int) – Geohash.

  • precision (int, optional) – Required accuracy.

  • round (optional, bool) – If true, the coordinates of the point will be rounded to the accuracy defined by the GeoHash.

Returns

decoded geographic point.

Return type

pyinterp.geodetic.Point

Raises

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

  1. decode(hash: numpy.ndarray[numpy.uint64[m, 1]], precision: int = 64, round: bool = False) -> Tuple[numpy.ndarray[numpy.float64[m, 1]], numpy.ndarray[numpy.float64[m, 1]]]

Decode hash into a geographic points with the given precision.

Parameters
  • hash (numpy.ndarray) – Geohash.

  • precision (int, optional) – Required accuracy.

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

Returns

longitudes/latitudes of the decoded points.

Return type

tuple

Raises

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