{"id":46834494,"url":"https://github.com/postgis/h3-pg","last_synced_at":"2026-03-10T11:15:10.138Z","repository":{"id":37579888,"uuid":"161155314","full_name":"postgis/h3-pg","owner":"postgis","description":"PostgreSQL bindings for H3, a hierarchical hexagonal geospatial indexing system","archived":false,"fork":false,"pushed_at":"2026-02-28T21:09:24.000Z","size":750,"stargazers_count":355,"open_issues_count":5,"forks_count":47,"subscribers_count":11,"default_branch":"main","last_synced_at":"2026-02-28T22:52:37.316Z","etag":null,"topics":["geospatial","h3","postgis","postgresql"],"latest_commit_sha":null,"homepage":"","language":"PLpgSQL","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/postgis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["zachasme"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2018-12-10T10:10:35.000Z","updated_at":"2026-02-28T21:09:28.000Z","dependencies_parsed_at":"2023-10-02T08:46:51.807Z","dependency_job_id":"a89bb468-c4d8-4358-a20c-184359450b3e","html_url":"https://github.com/postgis/h3-pg","commit_stats":null,"previous_names":["bytesandbrains/h3-pg","postgis/h3-pg"],"tags_count":36,"template":false,"template_full_name":null,"purl":"pkg:github/postgis/h3-pg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postgis%2Fh3-pg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postgis%2Fh3-pg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postgis%2Fh3-pg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postgis%2Fh3-pg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postgis","download_url":"https://codeload.github.com/postgis/h3-pg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postgis%2Fh3-pg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30331826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["geospatial","h3","postgis","postgresql"],"created_at":"2026-03-10T11:15:09.531Z","updated_at":"2026-03-10T11:15:10.123Z","avatar_url":"https://github.com/postgis.png","language":"PLpgSQL","funding_links":["https://github.com/sponsors/zachasme"],"categories":[],"sub_categories":[],"readme":"# h3-pg: Uber's H3 Hexagonal Hierarchical Geospatial Indexing System in PostgreSQL\n\n[![test-linux](https://github.com/postgis/h3-pg/actions/workflows/test-linux.yml/badge.svg)](https://github.com/postgis/h3-pg/actions/workflows/test-linux.yml)\n[![test-macos](https://github.com/postgis/h3-pg/actions/workflows/test-macos.yml/badge.svg)](https://github.com/postgis/h3-pg/actions/workflows/test-macos.yml)\n[![test-windows](https://github.com/postgis/h3-pg/actions/workflows/test-windows.yml/badge.svg)](https://github.com/postgis/h3-pg/actions/workflows/test-windows.yml)\n[![License](https://img.shields.io/badge/License-Apache2-blue.svg)](LICENSE)\n\nThis library provides PostgreSQL bindings for the [H3 Core Library](https://github.com/uber/h3). For API reference, please see the [H3 Documentation](https://uber.github.io/h3).\n\nDeveloped in collaboration with [Scandinavian Highlands](http://www.scandinavian-highlands.com).\n\n## Binary distributions\nThese don't require you have the development headers or cmake installed.\n\n### Debian/Ubuntu (Ubuntu 22.04 LTS (Jammy Jellyfish) +)\nReplace 16 with your postgresql version.\nRefer to [PGDG Ubuntu](https://www.postgresql.org/download/linux/ubuntu/) and [PGDG Debian](https://www.postgresql.org/download/linux/debian/) for installing PostgreSQL.\nMore details about the various packages at https://apt.postgresql.org\n```\nsudo apt install postgresql-16-h3\n```\n\n### Redhat Derivatives (Rocky / EL 8+ / Fedora 37+)\nReplace 16 with your postgresql version\nRefer to [PGDG Redhat Derivatives](https://www.postgresql.org/download/linux/redhat/) for installing PostgreSQL.\nMore details about the various packages at https://yum.postgresql.org\n```\nsudo yum install h3-pg_16\n```\n\n### Windows\n\nDistributed via the PostGIS Bundle for PostgreSQL on Windows.\nDetails: [postgis.net windows](https://postgis.net/documentation/getting_started/install_windows/released_versions/)  \nWorks with [PostgreSQL Windows](https://www.postgresql.org/download/windows/) and PostGIS bundle is accessible via the included Application Stackbuilder.\n\n## Compiling Prerequisites\n\n- PostgreSQL (_including server headers_, e.g. `postgresql-server-dev-14`)\n- C compiler (e.g., `gcc`)\n- [CMake](https://cmake.org/) 3.20+\n- GNU Make\n\nCI currently tests PostgreSQL 14-18 on Linux and macOS.\n\n## Quick Overview\n\nIf the prerequisites are met you can use the [PGXN Client](docs/pgxnclient.md) to download, build, and install, e.g.:\n\n```shell\n$ pgxn install h3\n$ pgxn load h3\n$ psql\n=# SELECT h3_latlng_to_cell(POINT('37.3615593,-122.0553238'), 5);\n  h3_latlng_to_cell\n-----------------\n 85e35e73fffffff\n(1 row)\n```\n\n(You can install a specific version using `pgxn install 'h3=4.2.3'` and `pgxn load 'h3=4.2.3'` for example)\n\nSee [Building](#building) for other installation methods.\n\n## Usage\n\n\u003e :tada: **Note:** The following usage docs apply to **H3 v4**, which was released on August 23, 2022.\n\u003e\n\u003e - For v3 docs, [see the latest v3.x.x release](https://github.com/postgis/h3-pg/blob/v3.7.2/README.md).\n\u003e - For breaking changes in v4, [see the CHANGELOG](./CHANGELOG.md). In particular, most [function names have changed](https://h3geo.org/docs/library/migration-3.x/functions).\n\nGenerally, all functions have been renamed from camelCase in H3 to snake\\_case in SQL.\n\nSee [API reference](https://pgxn.org/dist/h3/docs/api.html) for all provided functions.\n\n## Building\n\n```bash\n# Generate native build system\ncmake -B build -DCMAKE_BUILD_TYPE=Release\n\n# Build extension(s)\ncmake --build build\n\n# Install extensions (might require sudo)\ncmake --install build --component h3-pg\n```\n\n## Contributing\n\nPull requests and GitHub issues are welcome. Please include tests for new work. Please note that the purpose of this extension is to expose the API of the H3 Core library, so we will rarely accept new features that are not part of that API. New proposed feature work is more appropriate in the core C library or in a new extension that depends on h3-pg.\n\nSee [Development](docs/development.md).\n\n## License\n\nThis project is released under the [Apache 2.0 License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostgis%2Fh3-pg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostgis%2Fh3-pg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostgis%2Fh3-pg/lists"}