pyinterp.core.GeoHash#
- class pyinterp.core.GeoHash(self, latitude: float, longitude: float, precision: int = 12)#
Bases:
pybind11_objectCreate a GeoHash encoded in base 32.
- Parameters:
longitude – Longitude of the point.
latitude – Latitude of the point.
precision – Number of characters in the geohash. Default is 12.
- Raises:
ValueError – If the precision is not in the range [1, 12].
Public Methods
area(self[, wgs])Return the area covered by this GeoHash.
bounding_box(self)Return the bounding box of this GeoHash.
center(self)Return the center point of this GeoHash.
error_with_precision([precision])Return the accuracy in longitude/latitude and degrees for the given precision.
from_string(code[, round])Create a GeoHash from its string representation.
grid_properties(box[, precision])Get the property of the grid covering the given box.
neighbors(self)Return the eight neighbors of this GeoHash.
number_of_bits(self)Return the number of bits of this GeoHash.
precision(self)Return the precision of this GeoHash.
reduce(self)Return the arguments to rebuild this instance.
Special Methods
__str__(self)Return the string representation of this GeoHash.