{"id":23408512,"url":"https://github.com/ziprecruiter/h3-go","last_synced_at":"2025-04-09T01:32:49.698Z","repository":{"id":269091595,"uuid":"906361476","full_name":"ZipRecruiter/h3-go","owner":"ZipRecruiter","description":"Pure Go implementation of the spatial indexing library H3.","archived":false,"fork":false,"pushed_at":"2025-04-04T16:08:34.000Z","size":60,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-04T17:23:40.313Z","etag":null,"topics":["golang","h3","spatial"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZipRecruiter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-20T18:18:18.000Z","updated_at":"2025-04-04T16:08:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"f50c7368-d091-4038-9a8b-7d0bb36d0efb","html_url":"https://github.com/ZipRecruiter/h3-go","commit_stats":null,"previous_names":["ziprecruiter/h3-go"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZipRecruiter%2Fh3-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZipRecruiter%2Fh3-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZipRecruiter%2Fh3-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZipRecruiter%2Fh3-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZipRecruiter","download_url":"https://codeload.github.com/ZipRecruiter/h3-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247957323,"owners_count":21024691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","h3","spatial"],"created_at":"2024-12-22T15:15:12.845Z","updated_at":"2025-04-09T01:32:49.683Z","avatar_url":"https://github.com/ZipRecruiter.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# h3-go\n\nThis is a reimplementation of the [H3](https://github.com/uber/h3) spatial indexing library in pure Go (i.e. without using CGO to wrap the existing C++ library).\n\n## Design goals\n\n1. **Pure Go**: The library should be usable in any Go environment without requiring any additional dependencies. Notably, CGO should not be required.\n2. **Performance**: The library should be fast enough to be usable in production applications.\n3. **Idiomatic Go API**: The library should have an API that feels natural to Go developers.\n\n## Status\n\nThe library is in the early stages of development. We are implementing the core functionality of the H3 library, but not all features are available yet. The API is also subject to change.\n\nSome core pieces of functionality are implemented:\n\n- [x] Basic H3 index/cell Go types\n- [x] Conversion between lat/lon and H3 indexes\n- [x] Grid Disk algorithm\n\nOther important features are not yet implemented:\n- [ ] Clean up public API\n- [ ] Grid Ring algorithm\n- [ ] Performance optimizations, including microbenchmarking\n\n## Usage\n\n### Convert a lat/lon to an H3 index:\n\n```go\npackage main\n\nimport (\n\t\"github.com/ziprecruiter/h3-go/pkg/h3\"\n)\n\nfunc main() {\n\tlat := 37.775938728915946\n\tlon := -122.41795063018799\n\tresolution := 9\n\t\n\tll := h3.NewLatLng(lat, lon)\n\th3Index, err := h3.NewCellFromLatLng(ll, resolution)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tprintln(h3Index)\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziprecruiter%2Fh3-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziprecruiter%2Fh3-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziprecruiter%2Fh3-go/lists"}