I am using Baidu, and the five-digit Geohash can represent 10 square kilometers. So what is the range of the four-digit GeoHash? I am using Baidu, and the five-digit Geohash can represent 10 square kilometers. So what is the range of the four-digit GeoHash?
Reply content:
I am using Baidu, and the five-digit Geohash can represent 10 square kilometers. So what is the range of the four-digit GeoHash?
Http://www.cnblogs.com/LBSer/p/3310455.html
I believe you have read this article. The method for calculating the range is very simple, that is, the last time you approximate the range of your longitude and latitude areas. According to the article, the four digits are 20-bit binary, And the longitude and latitude are respectively 10 times approached, as shown in the article table. The longitude and latitude are converted based on the range of the last approximation result:
Latitude: 39.9024375-39.726625 = 0.1758125 longitude: 116.3671875-116.015625 = 0.3515625
That is to say, the minimum value indicates the range of such a large area. According to the WIKI address of the original article, the equivalent Kilometer number of latitude and longitude is known, and the calculated area is about 60 square kilometers? The principle is probably like this, but the mathematics is quite anxious and a little uncertain about the final calculation result -. -....