2018-05-15 13:38:21 UTC
The following was published on an email list to which I subscribe. Can others on this list can shed more light on CGJ-02 vs WGS-84, and some of the representations made in this article?
The Problem with Chinese GPS
If youâre in a foreign country and try to read a map, you may find it difficult -- unless your host nationâs language is the same as your home nationâs, the words are going to be different and, assuming youâre not bilingual, will require some translation. But the locations of the roads, rivers, buildings, and the like should be the same, regardless of whether the map is in English, Spanish, or Chinese, right? Language aside, Google Maps should work the same everywhere, right?
Pictured above is a map of the China/Hong Kong border via Google Maps; you can see it yourself by clicking here <https://nowiknow.us1.list-manage.com/track/click?u=2889002ad89d45ca21f50ba46&id=913c66c8ec&e=730199ccc5>. The map is your standard road map overlaid upon a satellite image. As you can see, the roads -- the light grey lines -- donât match up with reality. There are roundabouts which purport to be in public parks, bridges which donât exist, and multi-lane highways which seem to be underwater. The whole thing is a big navigational mess. Go far enough into Hong Kong, though, and the problem abates.
Whatâs going on? The map data, basically, is being lost in translation.
The world -- China aside -- uses something called the World Geodetic System 1984 <https://nowiknow.us1.list-manage.com/track/click?u=2889002ad89d45ca21f50ba46&id=ed4deb1753&e=730199ccc5> (âWGS-84â) as the basis for the digital maps. Virtually all the navigation tools we use online today -- the maps apps on our phones, the GPS systems in our cars, the missile guidance systems in use by the military, and yes, Google Maps -- all use WGS-84. China, though, goes its own way.
The Chinese use something called GCJ-02, an alternative system which the cartography world colloquially refers to it as the âMars Coordinatesâ as it may as well be made for another planet. The Google Maps screenshot and link, above, shows the problem: the road map data comes from the Chinese government, which uses GCJ-02, but the satellite data is from a non-Chinese source and uses WGS-84. (As China exerts control over, and takes responsibility for mapping out the border between itself and Hong Kong, the problem bleeds into the neighboring pseudo-sovereign state.) The two data sets, effectively, are speaking different languages.
China isnât just trying to be different, though; theyâre trying to be difficult. The government has long seen map data as a matter of national security. Thereâs a âSurveying and Mapping Law of the People's Republic of China <https://nowiknow.us1.list-manage.com/track/click?u=2889002ad89d45ca21f50ba46&id=1b29948166&e=730199ccc5>â which greatly restricts who can make maps. One needs a cartography license, one which comes with many strings; if youâre creating digital map data, for example, it needs to use GCJ-02 and has to be hosted on servers within China. And this isnât one of those anachronistic laws which go ignored and unenforced. In 2015, for example, the country announced that those who violate the law could face fines of 200,000 yuan (about $30,000 at the time) and, according to CityLab <https://nowiknow.us1.list-manage.com/track/click?u=2889002ad89d45ca21f50ba46&id=cd460fdbd8&e=730199ccc5>, âif the violation is deemed serious enough, [those who run afoul of the law] can even find themselves booked on criminal charges.â
So why not just make a tool which translates GCJ-02 to WGS-84? Well, there are a few, but theyâre typically hard to come by and not all that reliable. Multinational corporations like Google donât want to deploy them as it could hurt their standing with the Chinese government. And even if they did, the results wouldnât be great. GCJ-02 isnât just an alternative coordinate system; itâs an often unpredictable one. As Wikipedia explains <https://nowiknow.us1.list-manage.com/track/click?u=2889002ad89d45ca21f50ba46&id=6e3841c617&e=730199ccc5>, âit uses an obfuscation algorithm which adds apparently random offsets to both the latitude and longitude.â And even if you can get around those issues, it wonât matter much if youâre in China itself. If you use a mobile device there, per Travel and Leisure <https://nowiknow.us1.list-manage.com/track/click?u=2889002ad89d45ca21f50ba46&id=ba7f66addd&e=730199ccc5>, âChinese geographic regulations demand that GPS functions must either be disabled on handheld devices or they must be made to display a similar offset.â
So if you're traveling to China, knowing Chinese may be a lot more helpful than you'd think.