People Rectify Coordinates民正经纬

With restrictions from the People’s Republic of China附带来自中华人民共和国的限制

Input输入

    • ;
    • .
    • ° ′ ″ ;
    • ° ′ ″ .

Results结果

Operation操作 Result结果 ΔObfs/m偏移/米 ΔRoundtrip/m往返误差/米
WGS → GCJ
WGS → BD
GCJ → WGS
BD → WGS
GCJ →cai WGS
BD →cai WGS
GCJ → BD
BD → GCJ
BD →cai GCJ

此结果的永久链接。 Toggle sections:切换章节: Notes说明,FAQ常见问题,footer页脚。 print打印。

Notes说明

  1. Caijun’s iterative method is included for precise decoding. It's most useful for bored folks whose GPS data is pretty accurate and GCJ-02 obfuscation not tainted by the original LCPRNG. 内置 Caijun 迭代法用于精确解码。它最适合 GPS 数据相当准确、且 GCJ-02 混淆没有被原始 LCPRNG 污染的无聊人士。

    If you are doing Wikipedia or any kind of archival work, use it to avoid introducing extra error. 如果你在做维基百科或任何形式的存档工作,请使用它,以免引入额外误差。

  2. BD is defined in terms of GCJ, hence the last three functions. BD 以 GCJ 定义,因此有最后三个函数。
  3. This demo omits the “in China” sanity check. Data regarding Baidu’s behavior with overseas maps is needed for further decisions. Observations:本演示省略了“是否在中国境内”的合理性检查。要进一步决策,还需要了解百度在海外地图中的行为。观察结果:
    • Unlike Google Maps, Baidu's map in Hong Kong is fully subject to BD-09 ∘ GCJ-02 chained distortions. 与谷歌地图不同,百度地图在香港完全受 BD-09 ∘ GCJ-02 链式偏移的影响。
    • Coordinates in Russia, outside of the sanity check rectangle, uses WGS-84 or and/or friends. 俄罗斯境内、检查矩形之外的坐标使用 WGS-84 或同类系统。
    • TODO: check along the boundary. TODO:沿边界检查。

FAQ常见问题

What is this all about?这到底是怎么回事?
The PRC government requires all local map services to use an obfuscated, deviation-orienated coordinate system. Click on the “restriction” link to read the full Wikipedia article. 中华人民共和国政府要求所有本地地图服务使用经过混淆、以偏移为导向的坐标系。点击“限制”链接阅读完整的维基百科条目。
Why should I care?我为什么要在意?
With half a kilometer of deviation, GCJ-02 and friends fucks up your Ingress games, causes crazy errors in elevation profiles along cycle routes, and cheerfully leads you into roadside ditches plus a bone fracture. GCJ-02 及其同类会产生半公里级的偏移,毁掉你的 Ingress 游戏,在自行车路线的高程剖面中造成 离谱误差,还会愉快地把你带进路边沟里,外加一处骨折。
Why doesn’t Google/Bing correct its Chinese data served to global users?为什么谷歌/必应不修正其提供给全球用户的中国数据?
I don’t know. Perhaps they are afraid of getting fined or further kicked out of China. Maybe try OpenStreetMap next time? 我不知道。也许他们害怕被罚款,或者被进一步赶出中国。下次试试 OpenStreetMap?
Why are you writing another implementation?为什么还要再写一个实现?
Because I got bored. 因为我无聊。
How does Caijun’s iterative method work?Caijun 的迭代法是怎么工作的?
Cai has explained the method in full in his R implementation. Go read it, or read Wikipedia. Cai 在他的 R 实现中完整解释了这个方法。去读吧,或者读维基百科。