Easy-to-use and feature-rich geohash library
https://geohash.azurewebsites.net/
To use the geohash library in your projects run the following command in the Package Manager Console:
Install-Package geohash-dotnet
var hasher = new Geohasher(); var hash = hasher.Encode(52.5174, 13.409); // default precision 6
var hash2 = hasher.Encode(52.5174, 13.409, 12); // precision 12 var decoded = hasher.Decode("u33dc0");
var latitude = decoded.Item1;
var longitude = decoded.Item2; var neighbors = hasher.GetNeighbors("m");
var northNeighbor = neighbors[Direction.North];
var northEastNeighbor = neighbors[Direction.NorthEast]);
var eastNeighbor = neighbors[Direction.East]);
var southEastNeighbor = neighbors[Direction.SouthEast]);
var southNeighbor = neighbors[Direction.South]);
var southWestNeighbor = neighbors[Direction.SouthWest]);
var westNeighbor = neighbors[Direction.West]);
var northWestNeighbor = neighbors[Direction.NorthWest]);var southEastNeighbor = hasher.GetNeighbor("u33dc0", Direction.SouthEast));var subhashes = hasher.GetSubhashes("u33dc0");var parentHash = hasher.GetParent("u33dbc")