{"id":13471628,"url":"https://github.com/kungfoo/geohash-java","last_synced_at":"2025-12-17T10:02:37.194Z","repository":{"id":472769,"uuid":"97838","full_name":"kungfoo/geohash-java","owner":"kungfoo","description":"Implementation of GeoHashes in java. We try to be/stay compliant to the spec, as far as possible.","archived":false,"fork":false,"pushed_at":"2022-07-03T19:57:52.000Z","size":579,"stargazers_count":1000,"open_issues_count":9,"forks_count":311,"subscribers_count":60,"default_branch":"master","last_synced_at":"2025-07-12T03:31:18.229Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kungfoo.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}},"created_at":"2008-12-29T09:30:32.000Z","updated_at":"2025-07-10T01:29:14.000Z","dependencies_parsed_at":"2022-07-04T08:44:09.061Z","dependency_job_id":null,"html_url":"https://github.com/kungfoo/geohash-java","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/kungfoo/geohash-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kungfoo%2Fgeohash-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kungfoo%2Fgeohash-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kungfoo%2Fgeohash-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kungfoo%2Fgeohash-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kungfoo","download_url":"https://codeload.github.com/kungfoo/geohash-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kungfoo%2Fgeohash-java/sbom","scorecard":{"id":573659,"data":{"date":"2025-08-11","repo":{"name":"github.com/kungfoo/geohash-java","commit":"6e9a2ba881cbfee23721b7c017c5717647beed20"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":3,"reason":"Found 6/19 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 19 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T17:03:54.390Z","repository_id":472769,"created_at":"2025-08-20T17:03:54.390Z","updated_at":"2025-08-20T17:03:54.390Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27781462,"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","status":"online","status_checked_at":"2025-12-17T02:00:08.291Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-07-31T16:00:47.502Z","updated_at":"2025-12-17T10:02:37.178Z","avatar_url":"https://github.com/kungfoo.png","language":"Java","readme":"java code for geohashes\n=======================\n\nAn implementation of Geohashes in pure Java.\nThe produced hashes, when using character precision (multiples of 5 bits) are compatible\nto the reference implementation geohash.org.\n\nYou can however also encode Geohashes down to the full available precision of a long i.e. 64 bits.\n\nBuild status\n------------\n\n\u003ca href=\"https://travis-ci.org/kungfoo/geohash-java\"\u003e\u003cimg src=\"https://travis-ci.org/kungfoo/geohash-java.svg?branch=master\"/\u003e\u003c/a\u003e\n\n\nGetting the library\n-------------------\n\nAs of today, new releases are made available via maven Central.\nThus you can use the artifacts in various build systems like maven, ivy, gradle, sbt and many more.\n\nFind the current versions here:\n\n    http://search.maven.org/#search|ga|1|g%3A%22ch.hsr%22%20AND%20a%3A%22geohash%22\n\n\nBuilding/Testing the code\n-------------------------\n\nThe geohash-java code can be built using Apache Maven.\n\nMaven targets are the usual suspects.\n\n\t- clean    \n    - compile\n    - test\n    - package   # pack a versioned jar containing the compiled class files\n\nDigits and precision in km\n--------------------------\n| geohash length | lat bits | lng bits | lat error | lng error  | ~km error |\n|----------------|----------|----------|-----------|------------|-----------|\n| 1              | 2        | 3        | ±23       | ±23        | ±2500     |\n| 2              | 5        | 5        | ±2.8      | ±5.6       | ±630      |\n| 3              | 7        | 8        | ±0.70     | ±0.70      | ±78       |\n| 4              | 10       | 10       | ±0.087    | ±0.18      | ±20       |\n| 5              | 12       | 13       | ±0.022    | ±0.022     | ±2.4      |\n| 6              | 15       | 15       | ±0.0027   | ±0.0055    | ±0.61     |\n| 7              | 17       | 18       | ±0.00068  | ±0.00068   | ±0.076    |\n| 8              | 20       | 20       | ±0.000085 | ±0.00017   | ±0.019    |\n\n\nCompatibility\n-------------------------\nThis branch ditches 1.6 compatibility. If you need that look at the release-1.0 branch\nand artifacts in maven central. I will backport important bugfixes to the release-1.0 branch.\n\nTODO\n----\n\nCurrent development involves getting the following things to run:\n\n-\ta method to find the n closest hashes to any given point.\n-\trefactor tests, might want to add a dependency on hamcrest\n    and provide some custom matchers for fun and profit.\n\n\nLast important changes\n----------------------\n\nVersion 1.5.0\n-----------------------\n\nThis version adds support to expand `BoundingBox` to include another `Wgs84Point`.\nIt also merges a bunch of fixes in bounding box iterators.\n\nVersion 1.4.0\n-----------------------\n\nThis version adds support for `BoundingBox`es to go over the 180 meridian, which enables\nsearching and querying by covering them with `Geohash`es.\nThis was a much requested feature that made it into the library now, but depending on how\nyou construct `BoundingBox`es and how you use the library, this is a _breaking change_.\n\nIn this version you need to provide `latitude` and `longitude` to `BoundingBox`\nin a specific order for this wo work:\n\n````java\nnew BoundingBox(south, north, west, east);\n````\n\nThis breaking change enables creating bounding boxes that go over the 180\nmeridian which can then be used in coverage queries.\n\nThis version also changes the `toString()` implementation of `GeoHash` to\nalways include leading zeroes, so if your code actually relies on that,\nyou will also need to change things downstream that potentially use a prefix\nquery for matching points in a `GeoHash`s `BoundingBox`.\n\nFo now, we will continue to backport other fixes to the `1.3.x` branch, so you can\nkeep on using that version as well.\n\nVersion 1.3.0\n-----------------------\n\nThis version switches the license over to Apache Software License 2.0\n\nVersion 1.1.0\n-----------------------\n\nImportant fix 398d048b66e8cff1e5df8aa1a4bdc4c37ca70070\nord() would return negative longs, which is plain wrong.\n\nThanks to Graham Dennis and aborochoff for pointing it out.\n\nAlso: Raise source level to 1.7.\n\nVersion 1.0.13\n-----------------------\n\nMerge this fix https://github.com/0mok/geohash-java/commit/12550a392ea974cf75c81fce2bd21fe1535715a1\nIt causes compareTo() of geohashes to behave similarly as comaring their base32 encoded strings\n\nVersion 1.0.12\n-----------------------\n\ntoBase32() now throws an exception if the hash precision is not a multiple of 5.\n\nVersion 1.0.11\n-----------------------\n\n-   Added a static method to obtain a geohash string in one call.\n    Thanks to Andy Chosak.\n\nVersion 1.0.10\n--------------\n\nFinally realeased to maven central.\n\nVersion 1.0.9\n-------------\n\n-   Added method getCharacterPrecision() to GeoHash class\n\nVersion 1.0.8\n-------------\n\n-   Changed the code in VincentyGeodesy not to stumble over the fact that NaN == NaN will always return false\n\nVersion 1.0.6\n-------------\n\n-\tAdded a small fix that keeps VincentyGeodesy#moveInDirection() from returning wrong values when moving large distances. [submitted by André Kischkel]\n\nVersion 1.0.5\n-------------\n\n-   Added next(), next(step) and prev() methods to Geohash.\n-   Added fromBase32() and toBase32() to TwoGeoHashBoundingBox.\n-   Cleaned up the entire source tree using clearly defined settings.\n\nVersion 1.0.4\n-------------\n\n-   Added/fixed the methods toBinaryString() and Geohash.fromBinaryString() that can encode and decode a geohash into a simple String of 0s and 1s.\n-   Also added test code for those methods.\n\nVersion 1.0.3\n-------------\n\n-   Classes containing data are now Serializable.\n\nVersion 1.0.2\n-------------\n\n-   Merged Kevins [ktcorby] code that yields all the geohashes in a bounding box, at a given resolution.\n-   Merged Chris' [cchandler] code to encode and decode geohashes from a binary string.\n\nVersion 1.0.1\n-------------\n\n-   Fixed issue #2 from Github:\n\t- Neighbouring hashes can be calculated by using the getAdjacent() method, which yields a hashes 8 neighbors.\n\t- northern, eastern, western and southern neighbours can be determined using the respective methods.\n\n-   Fixed issue #1 from Github:\n\t- A bug caused different hashes to be yielded sometimes.\n\n\t\nLicense\n-------\n\nThis code has been placed under the Apache License 2.0.\nSee the LICENSE file for more information.\nPlease contribute improvements and bug fixes back via github.\n","funding_links":[],"categories":["Java"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkungfoo%2Fgeohash-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkungfoo%2Fgeohash-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkungfoo%2Fgeohash-java/lists"}