Hex area and edge length don't mathematically add up
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 6.5k
- Forks
- 627
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 6
Description
According to official docs on Cell Areas for H3 Resolutions
Using the provided edge length to calculate area with the equation (3 * sqrt(3)) / 2 * (edge ^2), the answer is 33% smaller than the provided area.
Full analysis is here
https://docs.google.com/spreadsheets/d/1O6_IZ9-WLCvf_1DgXeMrARowWLYwetlKd51DOvRtaaA/edit?usp=sharing
I strongly believe there has been a miscalculation with the provided documentation and in the library
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the official H3 resolution-table documentation and the linked analysis spreadsheet, then trace how the documented hex area and edge length are calculated in the library. Determine whether the discrepancy is in the documentation or implementation, and update the affected calculation or documentation with a validating test or example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- backend, documentation
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100