{"id":19944973,"url":"https://github.com/geocrystal/geohash","last_synced_at":"2025-03-01T13:42:12.555Z","repository":{"id":50667130,"uuid":"519774518","full_name":"geocrystal/geohash","owner":"geocrystal","description":"Geohash encode/decode library for pure Crystal","archived":false,"fork":false,"pushed_at":"2024-03-29T12:50:56.000Z","size":664,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-12T05:12:37.304Z","etag":null,"topics":["crystal","geohash","gis"],"latest_commit_sha":null,"homepage":"","language":"Crystal","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/geocrystal.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":"2022-07-31T12:48:02.000Z","updated_at":"2022-07-31T16:12:14.000Z","dependencies_parsed_at":"2024-11-13T00:25:35.281Z","dependency_job_id":"3d199e93-dff9-4980-ae53-5860dd7896b9","html_url":"https://github.com/geocrystal/geohash","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geocrystal%2Fgeohash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geocrystal%2Fgeohash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geocrystal%2Fgeohash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geocrystal%2Fgeohash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geocrystal","download_url":"https://codeload.github.com/geocrystal/geohash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241374520,"owners_count":19952544,"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":["crystal","geohash","gis"],"created_at":"2024-11-13T00:23:39.685Z","updated_at":"2025-03-01T13:42:12.536Z","avatar_url":"https://github.com/geocrystal.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# geohash\n\n[![Crystal CI](https://github.com/geocrystal/geohash/actions/workflows/crystal.yml/badge.svg)](https://github.com/geocrystal/geohash/actions/workflows/crystal.yml)\n[![License](https://img.shields.io/github/license/geocrystal/geohash.svg)](https://github.com/geocrystal/geohash/blob/master/LICENSE)\n[![GitHub release](https://img.shields.io/github/release/geocrystal/geohash.svg)](https://github.com/geocrystal/geohash/releases)\n\nGeohash encode/decode library for pure Crystal.\n\nA [geohash](https://en.wikipedia.org/wiki/Geohash) is a convenient way of expressing a location (anywhere in the world)\nusing a short alphanumeric string, with greater precision obtained with longer strings.\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     geohash:\n       github: geocrystal/geohash\n   ```\n\n2. Run `shards install`\n\n## Usage\n\n```crystal\nrequire \"geohash\"\n\nGeohash.encode(48.669, -4.329, 5) # =\u003e \"gbsuv\"\nGeohash.decode(\"gbsuv\") # =\u003e {lat: 48.669, lng: -4.329}\n\nGeohash.neighbors(\"gbsuv\")\n# =\u003e{n: \"gbsvj\", ne: \"gbsvn\", e: \"gbsuy\", se: \"gbsuw\", s: \"gbsut\", sw: \"gbsus\", w: \"gbsuu\", nw: \"gbsvh\"}\n#\n# Neighbors:\n# gbsvh\tgbsvj gbsvn\n# gbsuu\tgbsuv gbsuy\n# gbsus\tgbsut gbsuw\n\nGeohash.bounds(\"gbsuv\")\n# =\u003e {sw: {lat: 48.6474609375, lng: -4.3505859375}, ne: {lat: 48.69140625, lng: -4.306640625}}\n```\n\n![alt text](/assets/screenshot.png)\n\n\u003chttps://www.movable-type.co.uk/scripts/geohash.html\u003e\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/geocrystal/geohash/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Anton Maminov](https://github.com/mamantoha) - creator and maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeocrystal%2Fgeohash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeocrystal%2Fgeohash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeocrystal%2Fgeohash/lists"}