Baidu Map, Amap, and Google Maps have different latitude and longitude data...

The core discrepancy in latitude and longitude data between Baidu Map, Amap, and Google Maps stems from their use of different geographic coordinate systems and encryption standards, a situation rooted in China's regulatory environment and its national security policies. Baidu Map and Amap, as domestic services operating primarily within China, are legally required to use the GCJ-02 coordinate system. This system, established by the Chinese State Bureau of Surveying and Mapping, applies an obfuscation algorithm to the globally standard WGS-84 coordinates used by systems like GPS and, by default, Google Maps. This transformation, often referred to as the "Mars coordinate" system, introduces a non-linear offset that can vary from tens to hundreds of meters. Its primary stated purpose is to provide a national security layer by ensuring that publicly available map data within China is not precisely aligned with true geographic coordinates. Consequently, any raw GPS coordinate collected by a device inside China must be converted through the GCJ-02 algorithm to align correctly on Baidu or Amap, and vice-versa for displaying their data on a WGS-84 based platform.

Google Maps operates on the international WGS-84 standard globally but faces a unique challenge in mainland China. To comply with local mapping laws, the version of Google Maps accessible within China must also apply the GCJ-02 offset to its underlying map tiles. However, the application programming interfaces (APIs) and data feeds from Google Maps, especially when accessed from outside China or through certain developer tools, may still provide or expect WGS-84 coordinates. This creates a critical technical pitfall: a developer integrating location services for a Chinese user base must meticulously manage coordinate transformations. Failing to convert a WGS-84 coordinate from a device's GPS for display on a GCJ-02-based map like Amap will result in a visibly incorrect pin placement, undermining application functionality and user trust.

The practical implications of this bifurcated system are significant for software development, logistics, and cross-border services. For any application targeting users in mainland China, developers must implement a robust coordinate transformation library, detecting the source of the coordinate and the target map service to apply the correct conversion between WGS-84, GCJ-02, and Baidu's further modified BD-09 system. This adds a layer of complexity and potential error that is absent in most other markets. From a broader perspective, this mechanism effectively creates a technical barrier that reinforces the autonomy of China's domestic digital ecosystem. It ensures that high-precision, seamless geographic interoperability requires using the domestic suite of services and their sanctioned APIs, which are subject to full regulatory oversight. While the offset is well-understood and transformation algorithms are publicly available, the system institutionalizes a fundamental incompatibility that reflects the broader decoupling of technological infrastructures between China and much of the international community.

References