Skip to content

Commit a80e22f

Browse files
committed
Add the Geohash and improve some code
1 parent ea8be5a commit a80e22f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Algorithms/Other/Geohash.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
namespace Algorithms.Other
88
{
9-
public class Geohash
9+
public static class Geohash
1010
{
11-
private static readonly string Base32Characters = "0123456789bcdefghjkmnpqrstuvwxyz"; // Convert latitude and longitude coordinates into a concise string
12-
private static readonly int GeohashLength = 12; // ± 1.86 cm
11+
private const string Base32Characters = "0123456789bcdefghjkmnpqrstuvwxyz"; // Convert latitude and longitude coordinates into a concise string
12+
private const int GeohashLength = 12; // ± 1.86 cm
1313

1414
/// <summary>
1515
/// Encodes the provided latitude and longitude coordinates into a Geohash string.

0 commit comments

Comments
 (0)