文件名称:百度转火星坐标
文件大小:595B
文件格式:TXT
更新时间:2021-12-04 05:13:28
bd_decrypt
function bd_decrypt(bd_lon,bd_lat) { var X_PI = Math.Pi * 3000.0 / 180.0; var x = bd_lon - 0.0065; var y = bd_lat - 0.006; var z = Math.sqrt(x * x + y * y) - 0.00002 * Math.sin(y * X_PI); var theta = Math.atan2(y, x) - 0.000003 * Math.cos(x * X_PI); var gg_lon = z * Math.cos(theta); var gg_lat = z * Math.sin(theta); return { gg_lon: gg_lon, gg_lat: gg_lat } }