StikDebug/StikDebug
Stars d9c4c07eb5 Convert GCJ-02 map coordinates to WGS-84 before simulating location
In mainland China, published map data is legally required to use the
GCJ-02 datum, so MapKit renders AutoNavi tiles and hands back GCJ-02
coordinates. The location simulation service expects WGS-84, so a point
picked on the map is currently simulated 100-700 m away from where the
user tapped.

Convert at locationUpdateCode(for:), the single place where map-derived
coordinates -- both the dropped pin and route playback -- leave
MapSelectionView.

The URL-scheme path in MainTabView is deliberately left alone:
stikdebug://simulate-location carries raw WGS-84 from outside the app,
so converting there would double-shift it.

Coordinates outside the mainland bounding box are returned unchanged,
so behaviour everywhere else is bit-for-bit identical.

Measured at Tiananmen Square (39.9087, 116.3975): 556.1 m of offset
removed; round-trip error 0.000016 m.
2026-09-15 23:03:53 +08:00
..
App Fix JIT race on cold URL-scheme launch 2026-07-26 00:34:07 -06:00
Assets.xcassets Change StikJIT to StikDebug 2026-05-20 09:07:55 -04:00
Core Convert GCJ-02 map coordinates to WGS-84 before simulating location 2026-09-15 23:03:53 +08:00
Device Add Malloc Debugging (#460) 2026-09-09 08:52:58 -04:00
Features fix: prevent stalled tunnel connections from exhausting threads 2026-08-27 09:18:18 -04:00
idevice Change StikJIT to StikDebug 2026-05-20 09:07:55 -04:00
JSSupport Bounce back before script execution 2026-07-31 08:27:31 -06:00
Scripts Rename UTM-Dolphin.js to legacy.js and drop screenshot demos 2026-07-25 18:21:34 -06:00
Services Fix my mistake 2026-06-18 13:27:49 -04:00
StikDebug.icon Change StikJIT to StikDebug 2026-05-20 09:07:55 -04:00
Support Add Malloc Debugging (#460) 2026-09-09 08:52:58 -04:00
Views Convert GCJ-02 map coordinates to WGS-84 before simulating location 2026-09-15 23:03:53 +08:00
Info.plist Hopefully fix some weird issues 2026-05-20 10:07:09 -04:00
StikDebug.entitlements Change StikJIT to StikDebug 2026-05-20 09:07:55 -04:00