geoprimsField-grade geospatial math

Developer: index to area

Choose an H3 resolution for the cell size you want, index a point, inspect its cell and neighbors, and fill an area.

For developers · 5 steps · each opens with the values filled in

  1. Step 1

    H3 resolution chooser

    The resolution whose cells are about 0.1 km².

    You should see Use resolution 9, averaging 0.1053 km² per cell.

    Open with these values

  2. Step 2

    H3 cell for a point

    The cell a point falls in at that resolution.

    Carries resolution from step 1.

    You should see The H3 cell is 892a8471487ffff, about 0.1053 km².

    Open with these values

  3. Step 3

    H3 cell inspector

    The cell's center, area, and boundary.

    Carries H3 cell from step 2.

    You should see The cell's center is 40.444865978°, -79.981846904°, at resolution 9.

    Open with these values

  4. Step 4

    H3 grid disk (k-ring)

    The cell and its ring of neighbors.

    Carries center cell from step 2.

    You should see The disk of radius 1 holds 7 cells.

    Open with these values

  5. Step 5

    H3 polygon fill (polygonToCells)

    Every cell whose center falls in a block of downtown Pittsburgh.

    Carries resolution from step 1.

    You should see The polygon fills with 9 cells by center containment.

    Open with these values