pyinterp.geohash.decode

Contents

pyinterp.geohash.decode#

pyinterp.geohash.decode(hash: object, round: bool = False) tuple[numpy.ndarray[dtype=float64, shape=(*), order='C'], numpy.ndarray[dtype=float64, shape=(*), order='C']]#

Decode geohash strings into geographic coordinates.

This function decodes geohash strings into longitude and latitude coordinates. Optionally rounds the coordinates to the accuracy defined by the geohash.

Parameters:
  • hash – GeoHash codes to decode (numpy string array).

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

Returns:

Tuple of (longitudes, latitudes) of the decoded points.