Restrictions on Geographic Data in China

2026-09-12

Link: https://en.wikipedia.org/wiki/Restrictions_on_geographic_data_in_China

HN Discussion: 1 points, 0 comments

This Wikipedia article covers one of the most bizarre and technically fascinating regulatory regimes in modern software: China's legal requirement that all maps published within its borders use a deliberately obfuscated coordinate system called GCJ-02 (colloquially "Mars Coordinates"). If you've ever wondered why your GPS pin appears in the middle of a river when you cross into mainland China, this is the reason.

The short version: China treats accurate geographic survey data as a state secret. WGS-84 coordinates — the global standard used by every consumer GPS device — are illegal to publish for locations inside the PRC. Instead, licensed mapping providers must apply a nonlinear, pseudo-random offset algorithm that shifts every point by roughly 50–500 meters in an unpredictable direction. The algorithm itself is classified, though it has been reverse-engineered and reimplemented in open-source libraries.

Why a technical audience should care:

The article also touches on the survey-data licensing regime, the criminal penalties for unauthorized surveying (drone hobbyists have been prosecuted), and how the rules extend to satellite imagery resolution limits. For anyone working on geospatial software, autonomous vehicles, logistics, or just curious about how sovereignty gets encoded into coordinate systems, this is essential background reading — and it's the kind of thing you can't fully appreciate until you've had a map integration mysteriously fail at the Chinese border.

Why it deserves more upvotes: A rare, well-sourced explainer of one of the strangest technical/legal quirks in global software — mandatory coordinate obfuscation as state policy.

All newsletters