pyinterp.core.geohash.decode

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

Overloaded function.

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

Decode a hash into a geographic point.

Parameters
  • hash (str) – Geohash.

  • 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

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

Decode hashes into a geographic points.

Parameters
  • hash (numpy.ndarray) – Geohash codes.

  • 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