/**************************************************************************************************
* Purpose:gps纠偏算法,适用于google,高德体系的地图,下面是工具转换类的调用
* Author: GGG萌面人
***************************************************************************************************/
public with sharing class GpsToWGAction {
// a = 6378245.0, 1/f = 298.3 //卫星椭球坐标投影到平面地图坐标系的投影因子。
// b = a * (1 - f)
// ee = (a^2 - b^2) / a^2; // 椭球的偏心率
public static final Decimal pi = 3.1415926535897932;
public static final Decimal a = 6378245.0;
public static final Decimal ee = 0.00669342162296594323;
@AuraEnabled
public static Map<String,Object> transform(Decimal wgLat, Decimal wgLon){
Decimal mgLat;
Decimal mgLon;
if (outOfC