{"id":21262919,"url":"https://github.com/nikotron/geohex","last_synced_at":"2025-07-11T04:31:30.323Z","repository":{"id":56831147,"uuid":"201768250","full_name":"NiKoTron/geohex","owner":"NiKoTron","description":"Dart implementation of GeoHex encoding","archived":false,"fork":false,"pushed_at":"2022-01-27T21:51:07.000Z","size":119,"stargazers_count":3,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-15T06:33:28.684Z","etag":null,"topics":["dart","flutter","geocoder","geocoding","geocoding-library","geohex","geospatial","pubspec"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/geohex","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NiKoTron.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-11T13:29:05.000Z","updated_at":"2023-11-14T10:35:13.000Z","dependencies_parsed_at":"2022-08-28T21:02:12.648Z","dependency_job_id":null,"html_url":"https://github.com/NiKoTron/geohex","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiKoTron%2Fgeohex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiKoTron%2Fgeohex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiKoTron%2Fgeohex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiKoTron%2Fgeohex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NiKoTron","download_url":"https://codeload.github.com/NiKoTron/geohex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225674892,"owners_count":17506272,"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":["dart","flutter","geocoder","geocoding","geocoding-library","geohex","geospatial","pubspec"],"created_at":"2024-11-21T04:59:43.716Z","updated_at":"2024-11-21T04:59:44.391Z","avatar_url":"https://github.com/NiKoTron.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GeoHex for Dart\n\n[![pub package](https://img.shields.io/pub/v/geohex.svg)](https://pub.dartlang.org/packages/geohex) [![Coverage Status](https://coveralls.io/repos/github/NiKoTron/geohex/badge.svg?branch=master)](https://coveralls.io/github/NiKoTron/geohex?branch=master) [![Build Status](https://travis-ci.org/NiKoTron/geohex.svg?branch=master)](https://travis-ci.org/NiKoTron/geohex)\n\nImplementation of `geohex.org` encoding for Dart language.\n\n## Usage\n\nEncoding example:\n\n```dart\nimport 'package:geohex/geohex.dart';\n\nmain() {\n  //Location of Capetown\n  final geoHexCode = GeoHex.encode(-33.91522085, 18.3758784, 4); //OM4138\n}\n\n```\n\nDecoding example:\n\n```dart\nimport 'package:geohex/geohex.dart';\n\nmain() {\n  //Geocode of Capetown\n  final geoHexZone = GeoHex.decode('OM4138'); // instance of Zone with lat -33.91522085 lon 18.3758784 and level 4\n}\n\n```\n\n## Note\n\nThis realisation has some difference with the original lib. It's location clamping. Original `geohex.org` uses `double` representation of lat'n'lon, so theoretically, it should take more precision etc. but in fact, it leads to errors.\n\nRefer to this - [decimal degrees](https://en.wikipedia.org/wiki/Decimal_degrees), eight points after dot the should be enough for everything.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikotron%2Fgeohex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikotron%2Fgeohex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikotron%2Fgeohex/lists"}