|
Algorithm 1 The algorithm. |
-
Require:
, , ;
-
Ensure:
;
-
1:
, , , ← Calculate GeoHash binary code based on latitude and longitude;
-
2:
, ← Combine , , , with 2 strings according to the principle of “even bit longitude, odd bit latitude";
-
3:
, ← Process , according to the rules of base32 encoding;
-
4:
← Calculate the same string starting from the first digit of the two strings;
-
5:
← By Equation (9);
-
6:
return;
|