{"id":18873747,"url":"https://github.com/chobeat/scala-geohash","last_synced_at":"2025-04-14T16:21:05.876Z","repository":{"id":37602962,"uuid":"104651641","full_name":"chobeat/scala-geohash","owner":"chobeat","description":"Geohash tools for Scala","archived":false,"fork":false,"pushed_at":"2018-02-12T22:42:18.000Z","size":32,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T05:05:23.334Z","etag":null,"topics":["functional-programming","geohash","geolocation","scala"],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chobeat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-24T14:47:13.000Z","updated_at":"2019-07-23T08:25:29.000Z","dependencies_parsed_at":"2022-08-25T22:11:11.738Z","dependency_job_id":null,"html_url":"https://github.com/chobeat/scala-geohash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chobeat%2Fscala-geohash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chobeat%2Fscala-geohash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chobeat%2Fscala-geohash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chobeat%2Fscala-geohash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chobeat","download_url":"https://codeload.github.com/chobeat/scala-geohash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248914127,"owners_count":21182360,"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":["functional-programming","geohash","geolocation","scala"],"created_at":"2024-11-08T05:35:44.042Z","updated_at":"2025-04-14T16:21:05.851Z","avatar_url":"https://github.com/chobeat.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"scala-geohash aims to provide the basic tools to work with Geohashes in idiomatic Scala.\n\n**Basic Usage**\n\n*Encode a point as GeoHash*\n\n```scala\nimport org.chobeat.scalageohash.GeoHash\n\nval precision = 12\nGeoHash.encodeGeohash(-23.12, -12.33, precision)\n```\n\n```scala\nimport org.chobeat.scalageohash.{GeoHash,GeoPoint}\n\nval precision = 12\nval p = GeoPoint(-90.0, -180.00)\nGeoHash.encodeGeohash(p, precision)\n```\n\n*Decode a GeoHash*\n\n\n```scala\nimport org.chobeat.scalageohash.{GeoHash,GeoPoint}\nimport org.chobeat.scalageohash.GeoHash.BoxRange\nimport org.chobeat.scalageohash.ImplicitConversions._\nval geohash = \"5667gf\"\nval ((latW, latE), (lonN, lonS)): BoxRange = GeoHash(geohash).boxRange\nval (lat,lon) = GeoHash(geohash).centroid\n```\n\n*Get the neighbour of a GeoHash*\n\n\n```scala\nimport org.chobeat.scalageohash.{GeoHash,GeoPoint}\nimport org.chobeat.scalageohash.Directions._\nimport org.chobeat.scalageohash.ImplicitConversions._\nval geohash = GeoHash(\"gbsuv\")\nval neighbour = geohash.getNeighbour(North)\n```\n\n*Get all the neighbours of a GeoHash*\n\n\n```scala\nimport org.chobeat.scalageohash.{GeoHash,GeoPoint}\n\nval geohash = GeoHash(\"gbsuv\")\nval neighbourSet = geohash.getNeighbourSet()\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchobeat%2Fscala-geohash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchobeat%2Fscala-geohash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchobeat%2Fscala-geohash/lists"}