Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

js: Fix exact conv again #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

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