Skip to content

js: Fix exact conv again#42

Open
Artoria2e5 wants to merge 2 commits intogoogollee:masterfrom
Artoria2e5:patch-5
Open

js: Fix exact conv again#42
Artoria2e5 wants to merge 2 commits intogoogollee:masterfrom
Artoria2e5:patch-5

Conversation

@Artoria2e5
Copy link
Contributor

> wgs2gcj(35, 105)
{lat: 34.99909861697254, lng: 105.00328629710248}
> gcj2wgs_exact(34.99909861697254, 105.00328629710248)
{lat: 34.99999999920718, lng: 104.9999999993101}
> gcj2wgs(34.99909861697254, 105.00328629710248)
{lat: 34.99999091601437, lng: 104.99998369011693}

本来 exact 减法做反了,整个飞出去了……

> wgs2gcj(35, 105)
{lat: 34.99909861697254, lng: 105.00328629710248}
> gcj2wgs_exact(34.99909861697254, 105.00328629710248)
{lat: 34.99999999920718, lng: 104.9999999993101}
> gcj2wgs(34.99909861697254, 105.00328629710248)
{lat: 34.99999091601437, lng: 104.99998369011693}

本来 exact 减法做反了,整个飞出去了……
@Artoria2e5
Copy link
Contributor Author

说起来现在这个 threshold 其实已经不是偏差大小,而是每次改进多少了。因此得到的 9 也多了很多……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant