compute_geohash¶
- HSTB.kluster.modules.georeference.compute_geohash(latitude, longitude, precision)¶
Geohash is a geocoding method to encode a specific latitude/longitude into a string representing an area of a given precision. String is a custom base32 implementation encoded string. We use the python-geohash library to do this. The result is a string of length = precision encoding the position. Higher precision will give you a more accurate geohash, i.e. smaller tile.
- Parameters
latitude (
array) – numpy array of latitude valueslongitude (
array) – numpy array of longitude valuesprecision (
int) – integer precision, the length of the returned string, higher precision generates a smaller cell area code
- Returns
array of bytestrings dtype=’SX’ where X is the precision you have given
- Return type
np.array