aisdb.discretize.h3 module
- class aisdb.discretize.h3.Discretizer(resolution)[source]
Bases:
object- describe(plot=True)[source]
Generate and display the relationship between latitude and hexagon area, and resolution and hexagon edge length, with plots and printed output.
- Return type:
None
- get_h3_index(lat, lon)[source]
Get the H3 index for a single latitude and longitude point.
- Parameters:
lat – Latitude of the point
lon – Longitude of the point
- Returns:
H3 index as a string
- get_hexagon_area_at_latitude(lat)[source]
Generate a single hexagon at a specific latitude and calculate its area.