H3-Specific Operations

An H3 cell is a hexagon on an icosahedron, so it has neighbours through six edges, vertices shared with them, and a base cell among the 122 the icosahedron carries. Twelve cells at each resolution are pentagons. None of that has a counterpart in a square or a spherical quadrilateral grid.

MobilityDB builds on the h3 extension (h3-pg) and reads its h3index type, so every h3-pg function stays available beside the ones below. A MobilityDB function over an H3 cell takes the name of its h3-pg counterpart without the h3_ prefix, an operation the three grids share takes the name they share, and one signature answers each operation.

h3-pgMobilityDB
h3_latlng_to_celllatLngToCell
h3_cell_to_geometry, h3_cell_to_latlngcellToPoint
h3_cell_to_boundarycellToBoundary
h3_cell_to_parent, h3_cell_to_childrencellToParent, cellToChildren
h3_get_resolution, h3_is_valid_cellgetResolution, isValidCell
h3_grid_diskgridDisk
h3_cell_areacellArea