{"id":36417495,"url":"https://github.com/phansier/h3-kmp","last_synced_at":"2026-04-03T18:01:18.327Z","repository":{"id":331902604,"uuid":"983462879","full_name":"phansier/h3-kmp","owner":"phansier","description":"A library to convert Uber's H3 geo-index to LatLng vertices and back for Kotlin Multiplatform: iOS and Android","archived":false,"fork":false,"pushed_at":"2025-10-09T13:33:01.000Z","size":590,"stargazers_count":9,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-11T18:31:20.930Z","etag":null,"topics":["android","h3","hacktoberfest","kmp"],"latest_commit_sha":null,"homepage":"","language":"C","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/phansier.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-14T12:21:06.000Z","updated_at":"2025-11-10T04:38:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/phansier/h3-kmp","commit_stats":null,"previous_names":["phansier/h3-kmp"],"tags_count":1,"template":false,"template_full_name":"Kotlin/multiplatform-library-template","purl":"pkg:github/phansier/h3-kmp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phansier%2Fh3-kmp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phansier%2Fh3-kmp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phansier%2Fh3-kmp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phansier%2Fh3-kmp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phansier","download_url":"https://codeload.github.com/phansier/h3-kmp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phansier%2Fh3-kmp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31368156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T17:53:18.093Z","status":"ssl_error","status_checked_at":"2026-04-03T17:53:17.617Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["android","h3","hacktoberfest","kmp"],"created_at":"2026-01-11T17:00:23.521Z","updated_at":"2026-04-03T18:01:18.319Z","avatar_url":"https://github.com/phansier.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# H3-KMP library ![Last Version](https://img.shields.io/maven-central/v/io.github.phansier.h3/library)\n\n\nA library to convert Uber's H3 geo-index to LatLng vertices and back for Kotlin Multiplatform: iOS and Android\n\n## Experimental\n\n- Android is ready to use, API may change\n- iOS - Work in progress, need help/feedback for convenient publishing\n\n## Instalation\n\u003e [!NOTE]\n\u003e Replace \"0.0.2\" with ![](https://img.shields.io/maven-central/v/io.github.phansier.h3/library?label=latest%20version)\n\n### Gradle KMP\n\n```kotlin\nkotlin {\n   sourceSets {\n      commonMain.dependencies {\n            implementation(\"io.github.phansier.h3:library:0.0.2\")\n            /*\n            # or using version catalog:\n            # libs.version.toml\n            [versions]\n            h3 = \"0.0.2\"\n            [libraries]\n            h3 = { module = \"io.github.phansier.h3:library\", version.ref = \"h3\" }\n            */\n            // implementation(libs.h3)\n      }\n   }\n}\n```\n\n### Gradle Android\n\n```kotlin\ndependencies {\n    implementation(\"io.github.phansier.h3:library:0.0.2\")\n    // implementation(libs.h3)\n}\n```\n\n## Usage\n```kotlin\nimport com.beriukhov.h3.H3\nimport com.beriukhov.h3.LatLng as H3LatLng\n\n// https://h3geo.org/#hex=084754a9ffffffff\nval polygon: List\u003cH3LatLng\u003e = H3.vertices(\"084754a9ffffffff\")\n// res - Resolution, 0 \u003c= res \u003c= 15\nval h3Index: String = geoToH3(H3LatLng(0.0, 0.0), res = 4).toHexString()\n```\n\n### Run Sample App\n\n- Android: `open project in Android Studio and run the sample app`\n- iOS: `open 'sample/iosApp/iosApp.xcodeproj' in Xcode and run the sample app`\n\n### Publish to MavenLocal\n\n1) Run `./gradlew :library:publishToMavenLocal`\n2) Open `~/.m2/repository/io/github/phansier/h3/`\n\n### Inspired by\n\n- [abc-kmm-h3](https://github.com/line/abc-kmm-h3) - not updated 4 years\n- [h3-java](https://github.com/uber/h3-java) - [was not supported](https://github.com/uber/h3-java/issues/160) and easy to use in Android when works started\n- [h3-go](https://github.com/uber/h3-go) - includes C lib as sources - same approach used here\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphansier%2Fh3-kmp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphansier%2Fh3-kmp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphansier%2Fh3-kmp/lists"}