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

feat: 增加通用转换函数 #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

itldg
Copy link

@itldg itldg commented Jul 9, 2024

通过参数设置坐标系,可以根据后台系统配置,灵活转换

    //百度经纬度坐标转国测局坐标
    bd09togcj02 = coordtransform.convert(116.404, 39.915,'bd09','gcj02');
    //国测局坐标转百度经纬度坐标
    gcj02tobd09 = coordtransform.convert(116.404, 39.915,'gcj02','bd09');
    //wgs84转国测局坐标
    wgs84togcj02 = coordtransform.convert(116.404, 39.915,'wgs84','gcj02');
    //国测局坐标转wgs84坐标
    gcj02towgs84 = coordtransform.convert(116.404, 39.915,'gcj02','wgs84');

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