{"id":13508232,"url":"https://github.com/polmuz/elixir-geohash","last_synced_at":"2026-02-19T02:32:36.586Z","repository":{"id":48860375,"uuid":"45284854","full_name":"polmuz/elixir-geohash","owner":"polmuz","description":"Geohash encode/decode for Elixir","archived":false,"fork":false,"pushed_at":"2024-08-31T14:33:58.000Z","size":46,"stargazers_count":28,"open_issues_count":0,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-12T03:11:31.926Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/polmuz.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":"2015-10-31T01:47:12.000Z","updated_at":"2025-07-11T10:13:57.000Z","dependencies_parsed_at":"2025-03-30T10:30:56.989Z","dependency_job_id":"9dcdae75-caae-42b9-a194-7ca5ad58660f","html_url":"https://github.com/polmuz/elixir-geohash","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/polmuz/elixir-geohash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polmuz%2Felixir-geohash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polmuz%2Felixir-geohash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polmuz%2Felixir-geohash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polmuz%2Felixir-geohash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polmuz","download_url":"https://codeload.github.com/polmuz/elixir-geohash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polmuz%2Felixir-geohash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29601091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T00:59:38.239Z","status":"online","status_checked_at":"2026-02-19T02:00:07.702Z","response_time":117,"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-08-01T02:00:50.135Z","updated_at":"2026-02-19T02:32:36.561Z","avatar_url":"https://github.com/polmuz.png","language":"Elixir","funding_links":[],"categories":["Geolocation"],"sub_categories":[],"readme":"# Geohash\n\n![Tests Status](https://github.com/polmuz/elixir-geohash/actions/workflows/tests.yml/badge.svg)\n[![Module Version](https://img.shields.io/hexpm/v/geohash.svg)](https://hex.pm/packages/geohash)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/geohash/)\n[![Total Download](https://img.shields.io/hexpm/dt/geohash.svg)](https://hex.pm/packages/geohash)\n[![License](https://img.shields.io/hexpm/l/geohash.svg)](https://github.com/polmuz/elixir-geohash/blob/master/LICENSE.md)\n[![Last Updated](https://img.shields.io/github/last-commit/polmuz/elixir-geohash.svg)](https://github.com/polmuz/elixir-geohash/commits/master)\n\n[Geohash](https://en.wikipedia.org/wiki/Geohash) encoder/decoder implementation for Elixir.\n\n## Installation\n\nAdd `:geohash` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:geohash, \"~\u003e 1.0\"}\n  ]\nend\n```\n\nEnsure `:geohash` is started before your application:\n\n```elixir\ndef application do\n  [\n    applications: [:geohash]\n  ]\nend\n```\n\n## Usage\n\nEncode coordinates with `Geohash.encode(lat, lon, precision \\\\ 11)`:\n\n```elixir\nGeohash.encode(42.6, -5.6, 5)\n# \"ezs42\"\n```\n\nDecode coordinates with `Geohash.decode(geohash)`:\n\n```elixir\nGeohash.decode(\"ezs42\")\n# {42.605, -5.603}\n```\n\nFind neighbors:\n\n```elixir\nGeohash.neighbors(\"abx1\")\n# %{\"n\" =\u003e \"abx4\",\n#   \"s\" =\u003e \"abx0\",\n#   \"e\" =\u003e \"abx3\",\n#   \"w\" =\u003e \"abwc\",\n#   \"ne\" =\u003e \"abx6\",\n#   \"se\" =\u003e \"abx2\",\n#   \"nw\" =\u003e \"abwf\",\n#   \"sw\" =\u003e \"abwb\"}\n```\n\nFind adjacent:\n\n```elixir\nGeohash.adjacent(\"abx1\",\"n\")\n# \"abx4\"\n```\n\nGet bounds:\n\n```elixir\nGeohash.bounds(\"u4pruydqqv\")\n# %{min_lon: 10.407432317733765, min_lat: 57.649109959602356, max_lon: 10.407443046569824, max_lat: 57.649115324020386}\n```\n\n## Copyright and License\n\nCopyright (c) 2015 Pablo Mouzo\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolmuz%2Felixir-geohash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolmuz%2Felixir-geohash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolmuz%2Felixir-geohash/lists"}