What is the range of 4-digit geohash encoding?

Source: Internet
Author: User
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 -. -....

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.