polygon_to_geohashes¶
- HSTB.kluster.modules.georeference.polygon_to_geohashes(polygon, precision)¶
Take a polygon and return a list of all of the geohash codes/cells that are completely inside and those that are intersecting
- Parameters
polygon (
Union[array,Polygon]) – polygon as an existing shapely polygon object or a numpy array of coordinates (lat, lon order)precision – length of the geohash string
- Returns
list – list of bytestrings for the geohash cells that are completely inside the polygon
list – list of bytestrings for the geohash cells that only intersect the polygon