{"id":19668851,"url":"https://github.com/andrerav/geohash.georaptor","last_synced_at":"2025-10-24T19:48:06.060Z","repository":{"id":78459097,"uuid":"388477106","full_name":"andrerav/Geohash.GeoRaptor","owner":"andrerav","description":"A geohash compression library for efficiently reducing the size of large geohash collections.","archived":false,"fork":false,"pushed_at":"2021-10-04T18:32:48.000Z","size":77,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-14T08:49:34.176Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/andrerav.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2021-07-22T13:44:45.000Z","updated_at":"2023-05-30T09:17:40.000Z","dependencies_parsed_at":"2023-04-23T19:31:52.407Z","dependency_job_id":null,"html_url":"https://github.com/andrerav/Geohash.GeoRaptor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andrerav/Geohash.GeoRaptor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrerav%2FGeohash.GeoRaptor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrerav%2FGeohash.GeoRaptor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrerav%2FGeohash.GeoRaptor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrerav%2FGeohash.GeoRaptor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrerav","download_url":"https://codeload.github.com/andrerav/Geohash.GeoRaptor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrerav%2FGeohash.GeoRaptor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280857798,"owners_count":26403193,"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-10-24T02:00:06.418Z","response_time":73,"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-11-11T16:37:56.519Z","updated_at":"2025-10-24T19:48:06.056Z","avatar_url":"https://github.com/andrerav.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Geohash.GeoRaptor: .NET Geohash Compression Tool \u003cimg src=\"https://raw.githubusercontent.com/andrerav/Geohash.GeoRaptor/main/media/logo/logo.png\" width=\"48\"\u003e\n_Note: This is a port of [ashwin711/georaptor](https://github.com/ashwin711/georaptor) to C#/.NET._\n\n## Introduction\nGeohash.GeoRaptor is a geohash compression library for efficiently reducing the size of large geohash collections. If you are wondering what geohashes are all about, I can recommend checking out [this website by Movable Type](https://www.movable-type.co.uk/scripts/geohash.html) which explains geohashing in simple terms while at the same time providing a highly visual technical demo.\n\n## Download\n| Package | Link | Description |\n| ------- | ---- | ----------- |\n| Geohash.GeoRaptor | [![image](https://img.shields.io/nuget/v/Geohash.GeoRaptor.svg)](https://www.nuget.org/packages/Geohash.GeoRaptor/) | Use this package to install GeoRaptor as a library in your C#/.NET project. |\n| Geohash.GeoRaptor.CLI | [![image](https://img.shields.io/nuget/v/Geohash.GeoRaptor.CLI.svg)](https://www.nuget.org/packages/Geohash.GeoRaptor.CLI/) | Use this package to install GeoRaptor as a dotnet command line tool (see [CLI quickstart](#command-line-quickstart) below). You can install this tool using the command `dotnet tool install --global Geohash.GeoRaptor.CLI`. |\n\n## API Quickstart\n```csharp\nvar geohashes = new HashSet\u003cstring\u003e\n{\n    \"w21zf9\", \"w21zfc\", \"w21zg1\",\n    \"w21zg3\", \"w21zg9\", \"w21zgc2\",\n    \"w21zu1\", \"w21zu3\", \"w21zu9\",\n    \"w21zuc\", \"w21zv1\", \"w21zv3\",\n    \"w21zv9\", \"w21zvc\", \"w21zy1\",\n    \"w21zy3\", \"w21zy9\", \"w21zyc\",\n    \"w21xy8\", \"w21xyb\", \"w21xz0\"\n};\n\nvar result = GeoRaptor.Compress(geohashes, 4, 5);\n\n// Outputs \"w21zf, w21zg, w21zu, w21zv, w21zy, w21xy, w21xz\"\nConsole.WriteLine(string.Join(\", \", result.ToArray()));\n```\n\n## Command line quickstart\nFirst install the [dotnet tool version](https://www.nuget.org/packages/Geohash.GeoRaptor.CLI/) of GeoRaptor:\n```\ndotnet tool install --global Geohash.GeoRaptor.CLI\n```\nThen execute the tool from the command line using the `georaptor` command:\n```\ngeoraptor --lowest-precision 3 --highest-precision 4 -f some_input_file.txt\n```\nYou can also pipe data to the tool:\n```\ngeoraptor --lowest-precision 3 --highest-precision 4 \u003c some_input_file.txt\n```\nThe compressed output is simply printed to stdout.\n\nHere is a complete list of available command line options:\n```\n  -f, --input-file           Path to a text file with geohashes (one geohash per line)\n\n  -l, --lowest-precision     Required. Lowest precision\n\n  -h, --highest-precision    Required. Highest precision\n\n  -g, --output-geometry      Enable this to add WKB geometries to the output\n\n  --help                     Display this help screen.\n\n  --version                  Display version information.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrerav%2Fgeohash.georaptor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrerav%2Fgeohash.georaptor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrerav%2Fgeohash.georaptor/lists"}